From b223c58904fb38daca78a43df445289a9ad013d3 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 9 Mar 2008 12:01:03 +0000 Subject: [PATCH] Fix to load user-provided templates before system-provided ones. --- sphinx/builder.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sphinx/builder.py b/sphinx/builder.py index 6516f3588..d298c01bb 100644 --- a/sphinx/builder.py +++ b/sphinx/builder.py @@ -81,6 +81,7 @@ class Builder(object): self.templates = {} templates_path = [path.join(path.dirname(__file__), 'templates')] templates_path.extend(self.config.templates_path) + templates_path.reverse() self.jinja_env = Environment(loader=SphinxFileSystemLoader(templates_path), # disable traceback, more likely that something # in the application is broken than in the templates