summaryrefslogtreecommitdiff
path: root/sphinx-build.py
blob: ecd6febe5badff56dccaf4a12380edc429516db3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# -*- coding: utf-8 -*-
"""
    Sphinx - Python documentation toolchain
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    :copyright: 2007-2008 by Georg Brandl.
    :license: BSD.
"""

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)