1
0
Fork 0
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:
Michael DeHaan 2013-06-03 09:57:02 -04:00
parent dcde9bcdba
commit 3783dc42d4

View file

@ -473,7 +473,7 @@ def template_from_string(basedir, data, vars):
if '_original_file' in vars:
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):
basedir = filesdir