From 8a66d67ae8e224778cbc4579b21c97bb63eb395f Mon Sep 17 00:00:00 2001 From: shimizukawa Date: Sun, 25 May 2014 02:06:39 +0900 Subject: Fix: make-mode will work with sphinx-build command that is generated from setup.py entry_points definition. This fix relates to https://bitbucket.org/birkenfeld/sphinx/pull-request/203/add-make-mode-to-sphinx-build-invoked-by/diff#comment-1133945 --- sphinx-build.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'sphinx-build.py') diff --git a/sphinx-build.py b/sphinx-build.py index a4eb1a43..8dd21a7e 100755 --- a/sphinx-build.py +++ b/sphinx-build.py @@ -11,8 +11,5 @@ import sys if __name__ == '__main__': - from sphinx import main, make_main - if sys.argv[1:2] == ['-M']: - sys.exit(make_main(sys.argv)) - else: - sys.exit(main(sys.argv)) + from sphinx import main + sys.exit(main(sys.argv)) -- cgit v1.2.1