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:
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue