summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoranatoly techtonik <techtonik@gmail.com>2014-02-12 01:14:55 +0300
committeranatoly techtonik <techtonik@gmail.com>2014-02-12 01:14:55 +0300
commit5e94cf8968b559320bd152609a62b59a113342ed (patch)
treef6b7136f82d8eba4ac76512943b64829310c88c1
parent532e6db1f0d4f8ae9cc8a8d54cfa70ef3e98682a (diff)
downloadsphinx-5e94cf8968b559320bd152609a62b59a113342ed.tar.gz
Make 'python -m sphinx' possible
-rw-r--r--sphinx/__main__.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/sphinx/__main__.py b/sphinx/__main__.py
new file mode 100644
index 00000000..ee8419b7
--- /dev/null
+++ b/sphinx/__main__.py
@@ -0,0 +1,14 @@
+# -*- coding: utf-8 -*-
+"""
+ Sphinx
+ ~~~~~~
+
+ The Sphinx documentation toolchain.
+
+ :copyright: Copyright 2007-2014 by the Sphinx team, see AUTHORS.
+ :license: BSD, see LICENSE for details.
+"""
+import sys
+from sphinx import main
+
+sys.exit(main(sys.argv))