

def main(argv):
    ' Do it! '
    if (len(argv) != 2):
        print('Usage: python example.py module_name')
        print
        print('e.g., python example.py traits')
    else:
        code_browser = CodeBrowser(filename='data.pickle')
        start = time.time()
        contents = code_browser.read_package(sys.argv[1])
        stop = time.time()
        print('Time taken to parse', sys.argv[1], 'was', (stop - start), 'secs')
        code_browser.save('data.pickle')
    return

dataset/ETHPy150Open enthought/envisage/envisage/developer/code_browser/example.py main/original