import sys
sys.path.append('/usr/local/lib/python3.4/site-packages/')

from warc_dedup import deduplicate


def main():
    if len(sys.argv) == 1:
        raise Exception('Please provide the WARC file as argument.')
    deduplicate.Warc(*sys.argv[1:]).deduplicate()

if __name__ == '__main__':
    main()


[((11, 69), 'sys.path.append', 'sys.path.append', (['"""/usr/local/lib/python3.4/site-packages/"""'], {}), "('/usr/local/lib/python3.4/site-packages/')\n", (26, 69), False, 'import sys\n'), ((220, 251), 'warc_dedup.deduplicate.Warc', 'deduplicate.Warc', (['*sys.argv[1:]'], {}), '(*sys.argv[1:])\n', (236, 251), False, 'from warc_dedup import deduplicate\n')]