Issue 1504 - Use absolute paths if relative path requires drive letters

This commit is contained in:
Thomas Nagy 2014-10-28 20:59:36 +01:00
parent 0cb547e65d
commit 803bbe6674
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64
1 changed files with 3 additions and 2 deletions

View File

@ -391,8 +391,9 @@ class Node(object):
c1 = c1.parent
c2 = c2.parent
for i in range(up):
lst.append('..')
if c1.parent:
for i in range(up):
lst.append('..')
lst.reverse()
return os.sep.join(lst) or '.'