def run(handle_file, dst, sources=()):
    path = os.path.abspath(os.path.join(os.path.dirname(__file__), 'src'))
    if not sources:
        sources = [os.path.join(path, fn) for fn in os.listdir(path)]
    if not os.path.isdir(dst):
        os.makedirs(dst)
    print 'Making docs for Pygments %s in %s' % (__version__, dst)
    for fn in sources:
        if not os.path.isfile(fn):
            continue
        print 'Processing %s' % fn
        f = open(fn)
        try:
            handle_file(fn, f, dst)
        finally:
            f.close()
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/Pygments-1.3.1/docs/generate.py/run/original