Commit 500d8f1e by James Cammarata

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

handling case of space in path (given would start with single quote)
parents 795eacce affdadda
......@@ -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("~"):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment