##// END OF EJS Templates
genosxversion: don't give up if we can't find a path to hg libraries...
Augie Fackler -
r45960:148d177a stable
parent child Browse files
Show More
@@ -6,9 +6,14 b' import os'
6 import subprocess
6 import subprocess
7 import sys
7 import sys
8
8
9 # Always load hg libraries from the hg we can find on $PATH.
9 try:
10 hglib = subprocess.check_output(['hg', 'debuginstall', '-T', '{hgmodules}'])
10 # Always load hg libraries from the hg we can find on $PATH.
11 sys.path.insert(0, os.path.dirname(hglib))
11 hglib = subprocess.check_output(['hg', 'debuginstall', '-T', '{hgmodules}'])
12 sys.path.insert(0, os.path.dirname(hglib))
13 except subprocess.CalledProcessError:
14 # We're probably running with a PyOxidized Mercurial, so just
15 # proceed and hope it works out okay.
16 pass
12
17
13 from mercurial import util
18 from mercurial import util
14
19
General Comments 0
You need to be logged in to leave comments. Login now