diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-04-18 17:22:03 +0300 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-04-18 17:22:03 +0300 |
commit | f1b387bdcff9fb74dad832865a32cc6b1f4a9b68 (patch) | |
tree | eecdbb4351552e1822aa772a7b96a9a6d9dde72b /sphinx/jinja2glue.py | |
parent | 13acfd3ce10e62584ebad27b3b4d022afa9fac25 (diff) |
Fix fail to load template file if the parent template is archived
Diffstat (limited to 'sphinx/jinja2glue.py')
-rw-r--r-- | sphinx/jinja2glue.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/jinja2glue.py b/sphinx/jinja2glue.py index 91b3a6e3a..c40b102ad 100644 --- a/sphinx/jinja2glue.py +++ b/sphinx/jinja2glue.py @@ -135,8 +135,8 @@ class BuiltinTemplateLoader(TemplateBridge, BaseLoader): if theme: # the theme's own dir and its bases' dirs pathchain = theme.get_dirchain() - # then the theme parent paths - loaderchain = pathchain + theme.themepath + # the loader dirs: pathchain + the parent directories for all themes + loaderchain = pathchain + [path.join(p, '..') for p in pathchain] elif dirs: pathchain = list(dirs) loaderchain = list(dirs) |