##// 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 def pathto(root, n1, n2):
335 335 a.pop()
336 336 b.pop()
337 337 b.reverse()
338 return os.sep.join((['..'] * len(a)) + b)
338 return os.sep.join((['..'] * len(a)) + b) or '.'
339 339
340 340 def canonpath(root, cwd, myname):
341 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