From 9ebbc4d8080e7debcb297bdcce498199d3f6b300 Mon Sep 17 00:00:00 2001 From: kosugi Date: Sun, 4 Mar 2018 00:26:26 +0900 Subject: [PATCH] =?UTF-8?q?issue=20#13=20=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sphinx_qsp/quickstart_plus.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sphinx_qsp/quickstart_plus.py b/sphinx_qsp/quickstart_plus.py index 7959e53..e7cd690 100644 --- a/sphinx_qsp/quickstart_plus.py +++ b/sphinx_qsp/quickstart_plus.py @@ -28,8 +28,13 @@ import json import os -from sphinx import quickstart -from sphinx.quickstart import ask_user, generate, do_prompt, nonempty, boolean +import sphinx +if sphinx.version_info[0:2] >= (1, 7): + from sphinx import quickstart + from sphinx.quickstart.cmd import ask_user, generate, do_prompt, nonempty, boolean +else: + from sphinx import quickstart + from sphinx.quickstart import ask_user, generate, do_prompt, nonempty, boolean __version__ = "0.6"