mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-09-30 13:33:21 -07:00
Allow using other users' home directories as well
This commit is contained in:
parent
89e73c123f
commit
d632210941
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue