def is_valid_file(parser, arg):
    arg = os.path.abspath(arg)
    if os.path.exists(arg):
        return arg
    parser.error("The file %s does not exist!" % arg)
dataset/ETHPy150Open itsnauman/postie/postie/cli.py/is_valid_file/original