##// END OF EJS Templates
setup: set env global earlier (3073)
Matt Mackall -
r15367:b357a972 stable
parent child Browse files
Show More
@@ -133,14 +133,14 b' def runhg(cmd, env):'
133
133
134 version = ''
134 version = ''
135
135
136 env = {'HGRCPATH': '', 'LANGUAGE': 'C'}
137
136 if os.path.isdir('.hg'):
138 if os.path.isdir('.hg'):
137 # Execute hg out of this directory with a custom environment which
139 # Execute hg out of this directory with a custom environment which
138 # includes the pure Python modules in mercurial/pure. We also take
140 # includes the pure Python modules in mercurial/pure. We also take
139 # care to not use any hgrc files and do no localization.
141 # care to not use any hgrc files and do no localization.
140 pypath = ['mercurial', os.path.join('mercurial', 'pure')]
142 pypath = ['mercurial', os.path.join('mercurial', 'pure')]
141 env = {'PYTHONPATH': os.pathsep.join(pypath),
143 env['PYTHONPATH'] = os.pathsep.join(pypath)
142 'HGRCPATH': '',
143 'LANGUAGE': 'C'}
144 if 'LD_LIBRARY_PATH' in os.environ:
144 if 'LD_LIBRARY_PATH' in os.environ:
145 env['LD_LIBRARY_PATH'] = os.environ['LD_LIBRARY_PATH']
145 env['LD_LIBRARY_PATH'] = os.environ['LD_LIBRARY_PATH']
146 if 'SystemRoot' in os.environ:
146 if 'SystemRoot' in os.environ:
General Comments 0
You need to be logged in to leave comments. Login now