diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2021-05-22 02:22:42 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-22 02:22:42 +0900 |
commit | abe5ab4fa7aa4af4de8a65de1b51241852324591 (patch) | |
tree | ed9c4e9a0f31ddbfe009b1ead3b486f4e9148649 /sphinx/application.py | |
parent | aba3a33645c5b31bbe414a8cf1e3abffe74fc27b (diff) | |
parent | 63fbfb02f1c30016a6c9251443f2621d2b9700eb (diff) | |
download | sphinx-git-abe5ab4fa7aa4af4de8a65de1b51241852324591.tar.gz |
Merge pull request #9242 from tk0miya/refactor_env2
refactor: Make the app argument for BuildEnvironment required
Diffstat (limited to 'sphinx/application.py')
-rw-r--r-- | sphinx/application.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sphinx/application.py b/sphinx/application.py index 5b24aa8e4..a722edc72 100644 --- a/sphinx/application.py +++ b/sphinx/application.py @@ -300,8 +300,7 @@ class Sphinx: def _init_env(self, freshenv: bool) -> None: filename = path.join(self.doctreedir, ENV_PICKLE_FILENAME) if freshenv or not os.path.exists(filename): - self.env = BuildEnvironment() - self.env.setup(self) + self.env = BuildEnvironment(self) self.env.find_files(self.config, self.builder) else: try: |