Allow using other users' home directories as well

pull/4420/head
Daniel Hokka Zakrisson 2013-02-11 23:43:30 +01:00
parent 89e73c123f
commit d632210941
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ def path_dwim(basedir, given):
if given.startswith("/"):
return given
elif given.startswith("~/"):
elif given.startswith("~"):
return os.path.expanduser(given)
else:
return os.path.join(basedir, given)