blob: d1136fd0d8711ba0248add7a0adc4972e8ef88d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/usr/bin/python
"""Simple script to run epydoc with the correct python path and arguments.
See http://epydoc.sourceforge.net/ for more information on epydoc."""
import sys, os.path
# Make sure that we don't get confused between an epydoc.py script and
# the real epydoc package.
if os.path.exists(os.path.join(sys.path[0], 'epydoc.py')):
del sys.path[0]
# work around local installation quirks.
if False:
# these aren't needed on debian/unstable; we'll add whatever
# we need for the XO, Fedora, etc.
sys.path.insert(0, '/usr/share/pycentral/python-roman/site-packages')
sys.path.insert(0, '/usr/share/pycentral/python-docutils/site-packages')
sys.path.insert(0, '3rdParty/epydoc/src')
from epydoc import gui, cli
if '-g' in sys.argv:
sys.argv.remove('-g')
gui.gui()
else:
sys.argv.insert(1, '--config')
sys.argv.insert(2, 'epydoc.config')
cli.cli()
|