Skip to content
Snippets Groups Projects
Commit b357a972 authored by Matt Mackall's avatar Matt Mackall
Browse files

setup: set env global earlier (3073)

parent 06b8db3f
No related branches found
No related tags found
No related merge requests found
......@@ -133,8 +133,10 @@
version = ''
env = {'HGRCPATH': '', 'LANGUAGE': 'C'}
if os.path.isdir('.hg'):
# Execute hg out of this directory with a custom environment which
# includes the pure Python modules in mercurial/pure. We also take
# care to not use any hgrc files and do no localization.
pypath = ['mercurial', os.path.join('mercurial', 'pure')]
......@@ -136,11 +138,9 @@
if os.path.isdir('.hg'):
# Execute hg out of this directory with a custom environment which
# includes the pure Python modules in mercurial/pure. We also take
# care to not use any hgrc files and do no localization.
pypath = ['mercurial', os.path.join('mercurial', 'pure')]
env = {'PYTHONPATH': os.pathsep.join(pypath),
'HGRCPATH': '',
'LANGUAGE': 'C'}
env['PYTHONPATH'] = os.pathsep.join(pypath)
if 'LD_LIBRARY_PATH' in os.environ:
env['LD_LIBRARY_PATH'] = os.environ['LD_LIBRARY_PATH']
if 'SystemRoot' in os.environ:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment