mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix: 97d5dd1 drop config.templates_path for loader path
This commit is contained in:
parent
ff15231142
commit
4fd9d846d6
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user