From 95a93629930d5f3f8aa1241376a9e2be7d9c8f96 Mon Sep 17 00:00:00 2001 From: benmwebb Date: Wed, 1 Apr 2009 02:52:01 +0000 Subject: [PATCH] Minor fix to work with Python 1.5.2. git-svn-id: http://scons.tigris.org/svn/scons/trunk@4082 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- 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 fef1ff2b..dda5be56 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: -- 2.26.2