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: 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