diff options
Diffstat (limited to 'sphinx/make_mode.py')
-rw-r--r-- | sphinx/make_mode.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sphinx/make_mode.py b/sphinx/make_mode.py index aecad31b4..ae19e93ee 100644 --- a/sphinx/make_mode.py +++ b/sphinx/make_mode.py @@ -22,7 +22,7 @@ import sys from os import path import sphinx -from sphinx import cmdline +from sphinx.cmd.build import build_main from sphinx.util.console import color_terminal, nocolor, bold, blue # type: ignore from sphinx.util.osutil import cd, rmtree @@ -30,8 +30,6 @@ if False: # For type annotation from typing import List # NOQA -proj_name = os.getenv('SPHINXPROJ', '<project>') - BUILDERS = [ ("", "html", "to make standalone HTML files"), @@ -151,7 +149,7 @@ class Make(object): '-d', doctreedir, self.srcdir, self.builddir_join(builder)] - return cmdline.main(args + opts) + return build_main(args + opts) def run_make_mode(args): |