diff options
author | Stephen Finucane <stephen@that.guru> | 2017-10-01 14:45:41 +0100 |
---|---|---|
committer | Stephen Finucane <stephen@that.guru> | 2017-10-02 15:42:23 +0100 |
commit | 1f5ed022252066900c4ed982184e3d26885ca33d (patch) | |
tree | 1f9773b98e0da2c6d50ffbae1057784056486e74 /sphinx-quickstart.py | |
parent | 89f9c7cab74298a243ac409c26d25eb2b137bf03 (diff) | |
download | sphinx-git-1f5ed022252066900c4ed982184e3d26885ca33d.tar.gz |
sphinx-quickstart: Move code to 'sphinx.cmd'
We're going to move the executable's here (or at least those that part
of the core library). The 'sphinx-build' executable was already moved,
so lets do 'sphinx-quickstart' next.
To avoid breaking packages that are using this feature directly, aliases
for the old 'main' method are included. This is based on what Django
does [1] and, like Django, will allow us to safely remove the old
modules in Sphinx 2.0.
[1] https://github.com/django/django/blob/1.11/django/test/runner.py#L688-L695
Signed-off-by: Stephen Finucane <stephen@that.guru>
Diffstat (limited to 'sphinx-quickstart.py')
-rwxr-xr-x | sphinx-quickstart.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx-quickstart.py b/sphinx-quickstart.py index 7e17beb27..3caa6590f 100755 --- a/sphinx-quickstart.py +++ b/sphinx-quickstart.py @@ -11,5 +11,5 @@ import sys if __name__ == '__main__': - from sphinx.quickstart import main + from sphinx.cmd.quickstart import main sys.exit(main(sys.argv[1:])) |