Skip to content
This repository was archived by the owner on Jun 11, 2019. It is now read-only.

Commit 83a2021

Browse files
committed
Update call to build_main, deprecated in sphinx 1.7
1 parent 2d81dbd commit 83a2021

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

sphinxcontrib/versioning/sphinx_.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
import os
77
import sys
88

9-
from sphinx import application, build_main, locale
9+
from sphinx import application, locale
10+
from sphinx.cmd.build import build_main
1011
from sphinx.builders.html import StandaloneHTMLBuilder
1112
from sphinx.config import Config as SphinxConfig
1213
from sphinx.errors import SphinxError
@@ -234,7 +235,7 @@ def build(source, target, versions, current_name, is_root):
234235
:param bool is_root: Is this build in the web root?
235236
"""
236237
log = logging.getLogger(__name__)
237-
argv = ('sphinx-build', source, target)
238+
argv = (source, target)
238239
config = Config.from_context()
239240

240241
log.debug('Running sphinx-build for %s with args: %s', current_name, str(argv))
@@ -262,7 +263,7 @@ def read_config(source, current_name):
262263
config = Config.from_context()
263264

264265
with TempDir() as temp_dir:
265-
argv = ('sphinx-build', source, temp_dir)
266+
argv = (source, temp_dir)
266267
log.debug('Running sphinx-build for config values with args: %s', str(argv))
267268
child = multiprocessing.Process(target=_read_config, args=(argv, config, current_name, queue))
268269
child.start()

0 commit comments

Comments
 (0)