summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Node/FS.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2005-08-13 19:09:11 (GMT)
committerSteven Knight <knight@baldmt.com>2005-08-13 19:09:11 (GMT)
commit1a3785fc03ffde5ea3102d7683dcabe4b6fd47c0 (patch)
treedeb438a6f6be998a4f70d0af8cdb937fc2788e51 /src/engine/SCons/Node/FS.py
parente7bc4330bd90e5250174c41023f1a2b671479857 (diff)
downloadSCons-1a3785fc03ffde5ea3102d7683dcabe4b6fd47c0.zip
SCons-1a3785fc03ffde5ea3102d7683dcabe4b6fd47c0.tar.gz
SCons-1a3785fc03ffde5ea3102d7683dcabe4b6fd47c0.tar.bz2
Add a Dirs() function that can be used in hBcexpansions. (Stanislav Baranov)
Diffstat (limited to 'src/engine/SCons/Node/FS.py')
-rw-r--r--src/engine/SCons/Node/FS.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/engine/SCons/Node/FS.py b/src/engine/SCons/Node/FS.py
index dbe7749..d073d53 100644
--- a/src/engine/SCons/Node/FS.py
+++ b/src/engine/SCons/Node/FS.py
@@ -1614,6 +1614,11 @@ class File(Base):
the SConscript directory of this file."""
return self.fs.Dir(name, self.cwd)
+ def Dirs(self, pathlist):
+ """Create a list of directories relative to the SConscript
+ directory of this file."""
+ return map(lambda p, s=self: s.Dir(p), pathlist)
+
def File(self, name):
"""Create a file node named 'name' relative to
the SConscript directory of this file."""