From: benmwebb Date: Wed, 1 Apr 2009 02:52:01 +0000 (+0000) Subject: Minor fix to work with Python 1.5.2. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=95a93629930d5f3f8aa1241376a9e2be7d9c8f96;p=scons.git 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 --- 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: