mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Instantiate Config object simply if confdir not given
This commit is contained in:
parent
181fb1093d
commit
2f1cb1e184
@ -185,6 +185,9 @@ class Sphinx(object):
|
|||||||
|
|
||||||
# read config
|
# read config
|
||||||
self.tags = Tags(tags)
|
self.tags = Tags(tags)
|
||||||
|
if self.confdir is None:
|
||||||
|
self.config = Config()
|
||||||
|
else:
|
||||||
self.config = Config.read(path.join(self.confdir, CONFIG_FILENAME),
|
self.config = Config.read(path.join(self.confdir, CONFIG_FILENAME),
|
||||||
confoverrides or {}, self.tags)
|
confoverrides or {}, self.tags)
|
||||||
self.config.check_unicode()
|
self.config.check_unicode()
|
||||||
|
Loading…
Reference in New Issue
Block a user