summaryrefslogtreecommitdiffstats
path: root/SConstruct
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-04-22 19:47:34 (GMT)
committerSteven Knight <knight@baldmt.com>2002-04-22 19:47:34 (GMT)
commit7a20266245e3cccfbec62c01ee62c037ec13d162 (patch)
tree09bea30e8477a3ccb406b926e1c4a0cc287d2132 /SConstruct
parent74f98d3083cfbb859bf032dba37ed14bbb5219dd (diff)
downloadSCons-7a20266245e3cccfbec62c01ee62c037ec13d162.zip
SCons-7a20266245e3cccfbec62c01ee62c037ec13d162.tar.gz
SCons-7a20266245e3cccfbec62c01ee62c037ec13d162.tar.bz2
Propogate PYTHONPATH when building SCons.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct5
1 files changed, 3 insertions, 2 deletions
diff --git a/SConstruct b/SConstruct
index 57e5c83..dd88045 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)