From 7444ff61e7c3b38dc76115a759748356560d1a94 Mon Sep 17 00:00:00 2001 From: stevenknight Date: Fri, 7 Nov 2008 16:29:41 +0000 Subject: [PATCH] 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 --- src/engine/SCons/Node/FS.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.26.2