Cache the result from rel_path().
authorstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Mon, 18 Apr 2005 19:48:09 +0000 (19:48 +0000)
committerstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Mon, 18 Apr 2005 19:48:09 +0000 (19:48 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@1282 fdb21ef1-2011-0410-befe-b5e4ea1792b1

src/engine/SCons/Node/FS.py

index 721d4d57350b3f39aaacf22541abe0bdd4d1875d..52919b0f6ae618637215a3769128b4c080604593 100644 (file)
@@ -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: