Forward PATH at Environment contruction time...

...so gettext tool is affected by PATH.
This commit is contained in:
Sergey Popov 2008-09-04 08:05:33 +00:00
parent 319492634b
commit 9bd73133a7

View file

@ -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: