Fix a nested-scope regression affecting Python 1.5, 2.0 and 2.1.
authorstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Fri, 7 Nov 2008 16:29:41 +0000 (16:29 +0000)
committerstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Fri, 7 Nov 2008 16:29:41 +0000 (16:29 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@3772 fdb21ef1-2011-0410-befe-b5e4ea1792b1

src/engine/SCons/Node/FS.py

index cbfc69897ba103e3aad74e3653911a0d1db99cb5..794a530c5ec667ffbb65a2d03824341ade42b5e7 100644 (file)
@@ -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