handling case of space in path (given would start with single quote)
parent
0aec8244c8
commit
affdadda25
|
@ -321,6 +321,9 @@ def path_dwim(basedir, given):
|
|||
make relative paths work like folks expect.
|
||||
'''
|
||||
|
||||
if given.startswith("'"):
|
||||
given = given[1:-1]
|
||||
|
||||
if given.startswith("/"):
|
||||
return os.path.abspath(given)
|
||||
elif given.startswith("~"):
|
||||
|
|
Loading…
Reference in New Issue