Esempio n. 1
0
def _check_css(cssname):
    """
    If C{cssname} is not valid, then issue an error and exit.
    """
    if cssname is None: return
    if os.path.isfile(cssname): return
    from epydoc.css import STYLESHEETS
    if STYLESHEETS.has_key(cssname): return

    # We couldn't find it.
    print >>sys.stderr, '\nError: CSS file %s not found\n' % cssname
    sys.exit(1)