def is_valid_file(parser, arg):
if not os.path.exists(arg) or not os.path.isfile(arg):
parser.error('The file "%s" does not exist!' % arg)
def is_valid_file(parser, arg):
if not os.path.exists(arg) or not os.path.isfile(arg):
parser.error('The file "%s" does not exist!' % arg)