diff options
author | Ben Webb <benmwebb@gmail.com> | 2009-04-01 02:52:01 (GMT) |
---|---|---|
committer | Ben Webb <benmwebb@gmail.com> | 2009-04-01 02:52:01 (GMT) |
commit | 86baf9eaf2229dc57765b6bc1a4ac17900c1d323 (patch) | |
tree | b66f3c4c2cec1ed7cef57ee08e53a798faf3e5a8 /src | |
parent | bdd18927987b13669220a630e190c5294f4ead31 (diff) | |
download | SCons-86baf9eaf2229dc57765b6bc1a4ac17900c1d323.zip SCons-86baf9eaf2229dc57765b6bc1a4ac17900c1d323.tar.gz SCons-86baf9eaf2229dc57765b6bc1a4ac17900c1d323.tar.bz2 |
Minor fix to work with Python 1.5.2.
Diffstat (limited to 'src')
-rw-r--r-- | src/engine/SCons/Tool/swig.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/SCons/Tool/swig.py b/src/engine/SCons/Tool/swig.py index fef1ff2..dda5be5 100644 --- a/src/engine/SCons/Tool/swig.py +++ b/src/engine/SCons/Tool/swig.py @@ -95,8 +95,8 @@ def _swigEmitter(target, source, env): # .py files should be generated in SWIGOUTDIR if specified, # otherwise in the same directory as the target if outdir: - python_files = map(lambda j, o=outdir: - env.fs.File(os.path.join(o, j)), + python_files = map(lambda j, o=outdir, e=env: + e.fs.File(os.path.join(o, j)), python_files) else: python_files = map(lambda m, d=target[0].dir: |