mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Use load_extension() to load the builder extension
This commit is contained in:
parent
ce5799a37a
commit
9f6da45fe5
@ -310,8 +310,7 @@ class Sphinx(object):
|
||||
' through entry point' % buildername)
|
||||
else:
|
||||
builderclass = entry_point.load()
|
||||
extension_module = sys.modules[builderclass.__module__]
|
||||
extension_module.setup(self)
|
||||
load_extension(self, builderclass.__module__)
|
||||
return builderclass(self)
|
||||
|
||||
def _init_builder(self):
|
||||
|
Loading…
Reference in New Issue
Block a user