Fix: 97d5dd1 drop config.templates_path for loader path

This commit is contained in:
Takayuki Shimizukawa 2013-12-09 09:43:26 +00:00
parent ff15231142
commit 4fd9d846d6

View File

@ -102,8 +102,10 @@ class BuiltinTemplateLoader(TemplateBridge, BaseLoader):
# prepend explicit template paths # prepend explicit template paths
self.templatepathlen = len(builder.config.templates_path) self.templatepathlen = len(builder.config.templates_path)
if builder.config.templates_path: if builder.config.templates_path:
pathchain[0:0] = [path.join(builder.confdir, tp) cfg_templates_path = [path.join(builder.confdir, tp)
for tp in builder.config.templates_path] for tp in builder.config.templates_path]
pathchain[0:0] = cfg_templates_path
loaderchain[0:0] = cfg_templates_path
# store it for use in newest_template_mtime # store it for use in newest_template_mtime
self.pathchain = pathchain self.pathchain = pathchain