Skip to content

Commit

Permalink
sphinx1.7+: ImportError workaround, allows to see help
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanislav Zubov committed Dec 9, 2019
1 parent 0b56210 commit d6d0260
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sphinxcontrib/versioning/sphinx_.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@
import os
import sys

from sphinx import application, build_main, locale
from sphinx import application, locale
try:
from sphinx import build_main
except ImportError:
# Sphinx 1.7+ ImportError fix
from sphinx.cmd.build import build_main
from sphinx.builders.html import StandaloneHTMLBuilder
from sphinx.config import Config as SphinxConfig
from sphinx.errors import SphinxError
Expand Down

0 comments on commit d6d0260

Please sign in to comment.