Allow using other users' home directories as well

This commit is contained in:
Daniel Hokka Zakrisson 2013-02-11 23:43:30 +01:00
commit d632210941

View file

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