summaryrefslogtreecommitdiff
path: root/sandbox/py-rest-doc/sphinx-build.py
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/py-rest-doc/sphinx-build.py')
-rw-r--r--sandbox/py-rest-doc/sphinx-build.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/sandbox/py-rest-doc/sphinx-build.py b/sandbox/py-rest-doc/sphinx-build.py
new file mode 100644
index 000000000..ab356f6f2
--- /dev/null
+++ b/sandbox/py-rest-doc/sphinx-build.py
@@ -0,0 +1,20 @@
+# -*- coding: utf-8 -*-
+"""
+ Sphinx - Python documentation toolchain
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+ :copyright: 2007 by Georg Brandl.
+ :license: Python license.
+"""
+
+import sys
+
+if __name__ == '__main__':
+ from sphinx import main
+ try:
+ sys.exit(main(sys.argv))
+ except Exception:
+ import traceback
+ traceback.print_exc()
+ import pdb
+ pdb.post_mortem(sys.exc_traceback)