Forward PATH at Environment contruction time...
...so gettext tool is affected by PATH.
This commit is contained in:
parent
319492634b
commit
9bd73133a7
1 changed files with 1 additions and 3 deletions
|
@ -92,12 +92,10 @@ opts.AddOptions(
|
|||
#
|
||||
|
||||
sys.path.insert(0, "./scons")
|
||||
env = Environment(tools=["tar", "gettext", "install", "python_devel", "scanreplace"], options = opts, toolpath = ["scons"])
|
||||
env = Environment(tools=["tar", "gettext", "install", "python_devel", "scanreplace"], options = opts, toolpath = ["scons"], ENV = { 'PATH' : os.environ["PATH"] })
|
||||
|
||||
opts.Save('.scons-option-cache', env)
|
||||
|
||||
# Make sure the user's environment is always available
|
||||
env['ENV']['PATH'] = os.environ["PATH"]
|
||||
if env["PLATFORM"] == "win32":
|
||||
env.Tool("mingw")
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue