##// END OF EJS Templates
util.pathto: return '.' instead of an empty string...
Alexis S. L. Carvalho -
r6111:213ea6ee default
parent child Browse files
Show More
@@ -335,7 +335,7 b' def pathto(root, n1, n2):'
335 a.pop()
335 a.pop()
336 b.pop()
336 b.pop()
337 b.reverse()
337 b.reverse()
338 return os.sep.join((['..'] * len(a)) + b)
338 return os.sep.join((['..'] * len(a)) + b) or '.'
339
339
340 def canonpath(root, cwd, myname):
340 def canonpath(root, cwd, myname):
341 """return the canonical path of myname, given cwd and root"""
341 """return the canonical path of myname, given cwd and root"""
General Comments 0
You need to be logged in to leave comments. Login now