From: stevenknight Date: Fri, 7 Nov 2008 16:29:41 +0000 (+0000) Subject: Fix a nested-scope regression affecting Python 1.5, 2.0 and 2.1. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7444ff61e7c3b38dc76115a759748356560d1a94;p=scons.git Fix a nested-scope regression affecting Python 1.5, 2.0 and 2.1. git-svn-id: http://scons.tigris.org/svn/scons/trunk@3772 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- diff --git a/src/engine/SCons/Node/FS.py b/src/engine/SCons/Node/FS.py index cbfc6989..794a530c 100644 --- a/src/engine/SCons/Node/FS.py +++ b/src/engine/SCons/Node/FS.py @@ -2174,8 +2174,9 @@ class File(Base): def Dirs(self, pathlist): """Create a list of directories relative to the SConscript directory of this file.""" + # TODO(1.5) # return [self.Dir(p) for p in pathlist] - return map(lambda p: self.Dir(p), pathlist) + return map(lambda p, s=self: s.Dir(p), pathlist) def File(self, name): """Create a file node named 'name' relative to