mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Allow using other users' home directories as well
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user