Fix breakage introduced in previous commit.

This commit is contained in:
Maxim Sobolev
2001-07-31 07:42:43 +00:00
parent a2bc5891ae
commit f6f46adfbd

View File

@@ -155,7 +155,7 @@ def querymakevar(varname, path = 'Makefile', strict = False, cache = {}):
#
def getrelpath(path, wrksrc):
path = os.path.abspath(path)
wrksrc = os.path.abspath(wrksrc)
wrksrc = os.path.abspath(wrksrc) + '/'
commonpart = os.path.commonprefix((path, wrksrc))
while commonpart[-1:] != '/':
commonpart = commonpart[:-1]