Merge pull request #8744 from ynk/fix/white-spaces

handling case of space in path (given would start with single quote)
This commit is contained in:
James Cammarata 2014-08-25 12:03:22 -05:00
commit 500d8f1e71

View file

@ -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("~"):