From 20f77f7905eee50f3f81679e94c13cf115c0a806 Mon Sep 17 00:00:00 2001 From: stevenknight Date: Mon, 18 Apr 2005 19:48:09 +0000 Subject: [PATCH] Cache the result from rel_path(). git-svn-id: http://scons.tigris.org/svn/scons/trunk@1282 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 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: -- 2.26.2