Commits

georg.brandl  committed 5c1aabd

Apply config overrides before searching for version info.

  • Participants
  • Parent commits 71994f1

Comments (0)

Files changed (1)

File sphinx/builder.py

         for key, val in self.config.items():
             if isinstance(val, types.ModuleType):
                 del self.config[key]
+        if confoverrides:
+            self.config.update(confoverrides)
         # replace version info if 'auto'
         if self.config['version'] == 'auto' or self.config['revision'] == 'auto':
             try:
                 self.config['version'] = version
             if self.config['release'] == 'auto':
                 self.config['release'] = release
-        if confoverrides:
-            self.config.update(confoverrides)
 
         self.status_stream = status_stream or sys.stdout
         self.warning_stream = warning_stream or sys.stderr