def exist_file(x):
    if not os.path.isfile(x):
        raise argparse.ArgumentError('{} does not exist'.format(x))
    return x
'Type' for argparse - checks that file exists but does not open.
dataset/ETHPy150Open ericgibert/supersid/supersid/supersid_scanner.py/exist_file