normalize path

pull/3105/merge
Michael DeHaan 12 years ago
parent dcde9bcdba
commit 3783dc42d4

@ -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…
Cancel
Save