From: stevenknight Date: Mon, 22 Apr 2002 19:47:34 +0000 (+0000) Subject: Propogate PYTHONPATH when building SCons. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=60452e1a24b9524a407e85ab835c17e842953048;p=scons.git Propogate PYTHONPATH when building SCons. git-svn-id: http://scons.tigris.org/svn/scons/trunk@339 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- diff --git a/SConstruct b/SConstruct index 57e5c835..dd880451 100644 --- a/SConstruct +++ b/SConstruct @@ -140,8 +140,9 @@ python_ver = sys.version[0:3] platform = distutils.util.get_platform() ENV = { 'PATH' : os.environ['PATH'] } -if os.environ.has_key('AEGIS_PROJECT'): - ENV['AEGIS_PROJECT'] = os.environ['AEGIS_PROJECT'] +for key in ['AEGIS_PROJECT', 'PYTHONPATH']: + if os.environ.has_key(key): + ENV[key] = os.environ[key] lib_project = os.path.join("lib", project)