mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
normalize path
This commit is contained in:
parent
dcde9bcdba
commit
3783dc42d4
1 changed files with 1 additions and 1 deletions
|
@ -473,7 +473,7 @@ def template_from_string(basedir, data, vars):
|
||||||
|
|
||||||
if '_original_file' in vars:
|
if '_original_file' in vars:
|
||||||
basedir = os.path.dirname(vars['_original_file'])
|
basedir = os.path.dirname(vars['_original_file'])
|
||||||
filesdir = os.path.join(basedir, '..', 'files')
|
filesdir = os.path.abspath(os.path.join(basedir, '..', 'files'))
|
||||||
if os.path.exists(filesdir):
|
if os.path.exists(filesdir):
|
||||||
basedir = filesdir
|
basedir = filesdir
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue