Explorar o código

sphinx: Fetch conf.py from confdir instead of srcdir in sphinx extension

Jan Holthuis %!s(int64=4) %!d(string=hai) anos
pai
achega
d7e72669d5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      sphinx_multiversion/sphinx.py

+ 1 - 1
sphinx_multiversion/sphinx.py

@@ -171,7 +171,7 @@ def config_inited(app, config):
     app.connect("html-page-context", html_page_context)
 
     # Restore config values
-    old_config = sphinx_config.Config.read(app.srcdir)
+    old_config = sphinx_config.Config.read(app.confdir)
     old_config.pre_init_values()
     old_config.init_values()
     config.version = old_config.version