From: stevenknight Date: Mon, 18 Apr 2005 19:48:09 +0000 (+0000) Subject: Cache the result from rel_path(). X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=20f77f7905eee50f3f81679e94c13cf115c0a806;p=scons.git Cache the result from rel_path(). git-svn-id: http://scons.tigris.org/svn/scons/trunk@1282 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- diff --git a/src/engine/SCons/Node/FS.py b/src/engine/SCons/Node/FS.py index 721d4d57..52919b0f 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: