#!/usr/bin/python2.5
"""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.
# Mounted os1477.usb on mnt/ then:
sys.path.insert(0, '/home/cananian/Desktop/joyride-1477/mnt/usr/lib/python2.5/site-packages')

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()
