app: make buildername available

This commit is contained in:
Georg Brandl 2015-05-21 11:39:10 +02:00
parent 1bf392867c
commit d966317464

View File

@ -79,6 +79,7 @@ class Sphinx(object):
self._extension_metadata = {}
self._listeners = {}
self.domains = BUILTIN_DOMAINS.copy()
self.buildername = buildername
self.builderclasses = BUILTIN_BUILDERS.copy()
self.builder = None
self.env = None
@ -185,7 +186,7 @@ class Sphinx(object):
# set up the build environment
self._init_env(freshenv)
# set up the builder
self._init_builder(buildername)
self._init_builder(self.buildername)
def _init_i18n(self):
"""Load translated strings from the configured localedirs if enabled in