Allow using other users' home directories as well

parent 89e73c12
......@@ -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)
......
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