summaryrefslogtreecommitdiff
path: root/sphinx/make_mode.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-03-01 01:12:47 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-03-01 01:12:47 +0900
commit4b8aaa2cf4de12f3311b7294b997ed4a7bae155c (patch)
treef99dd681507833b2b19ba3d8517bcb64ab91758b /sphinx/make_mode.py
parentd48e1ef9e5d2fda22b48e25d5f2289b19b919b31 (diff)
downloadsphinx-git-4b8aaa2cf4de12f3311b7294b997ed4a7bae155c.tar.gz
Fix infinit loop on make-mode
Diffstat (limited to 'sphinx/make_mode.py')
-rw-r--r--sphinx/make_mode.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/make_mode.py b/sphinx/make_mode.py
index 301baed49..b293ba54a 100644
--- a/sphinx/make_mode.py
+++ b/sphinx/make_mode.py
@@ -23,7 +23,7 @@ from os import path
from typing import TYPE_CHECKING
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
@@ -139,7 +139,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):