From 86baf9eaf2229dc57765b6bc1a4ac17900c1d323 Mon Sep 17 00:00:00 2001 From: Ben Webb Date: Wed, 1 Apr 2009 02:52:01 +0000 Subject: Minor fix to work with Python 1.5.2. --- src/engine/SCons/Tool/swig.py | 4 ++-- 1 file 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: -- cgit v0.12