summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2005-04-18 19:48:09 (GMT)
committerSteven Knight <knight@baldmt.com>2005-04-18 19:48:09 (GMT)
commite1b13e61a8cee4fc17e5880de660cee06ac42419 (patch)
tree6aecf31b190a473772a2a19d444de96f47be9b85 /src
parent1a7bfd1f408b60c477c78e725e3fbe88f5583975 (diff)
downloadSCons-e1b13e61a8cee4fc17e5880de660cee06ac42419.zip
SCons-e1b13e61a8cee4fc17e5880de660cee06ac42419.tar.gz
SCons-e1b13e61a8cee4fc17e5880de660cee06ac42419.tar.bz2
Cache the result from rel_path().
Diffstat (limited to 'src')
-rw-r--r--src/engine/SCons/Node/FS.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/engine/SCons/Node/FS.py b/src/engine/SCons/Node/FS.py
index 721d4d5..52919b0 100644
--- a/src/engine/SCons/Node/FS.py
+++ b/src/engine/SCons/Node/FS.py
@@ -1108,7 +1108,8 @@ class Dir(Base):
return self.entries['..']
def rel_path(self, other):
- """Return a path to "other" relative to this directory."""
+ """Return a path to "other" relative to this directory.
+ __cacheable__"""
if isinstance(other, Dir):
name = []
else: