mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-28 03:00:23 -07:00
handling case of space in path (given would start with single quote)
This commit is contained in:
parent
0aec8244c8
commit
affdadda25
1 changed files with 3 additions and 0 deletions
|
@ -321,6 +321,9 @@ def path_dwim(basedir, given):
|
||||||
make relative paths work like folks expect.
|
make relative paths work like folks expect.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
if given.startswith("'"):
|
||||||
|
given = given[1:-1]
|
||||||
|
|
||||||
if given.startswith("/"):
|
if given.startswith("/"):
|
||||||
return os.path.abspath(given)
|
return os.path.abspath(given)
|
||||||
elif given.startswith("~"):
|
elif given.startswith("~"):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue