diff options
Diffstat (limited to 'sphinx/jinja2glue.py')
-rw-r--r-- | sphinx/jinja2glue.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sphinx/jinja2glue.py b/sphinx/jinja2glue.py index fc3efc017..c51603769 100644 --- a/sphinx/jinja2glue.py +++ b/sphinx/jinja2glue.py @@ -35,7 +35,8 @@ class BuiltinTemplateLoader(TemplateBridge, jinja2.BaseLoader): # prepend explicit template paths if builder.config.templates_path: - chain[0:0] = builder.config.templates_path + chain[0:0] = [path.join(builder.confdir, tp) + for tp in builder.config.templates_path] # make the paths into loaders self.loaders = map(jinja2.FileSystemLoader, chain) |