def check_exists(filename, oappend=False):
    if op.exists(filename):
        if oappend:
            return oappend
        logging.error("`{0}` found, overwrite (Y/N)?".format(filename))
        overwrite = (raw_input() == 'Y')
    else:
        overwrite = True

    return overwrite
Shutdown qt application
dataset/ETHPy150Open tanghaibao/jcvi/formats/base.py/check_exists--crossover with--dataset/ETHPy150Open tuturto/pyherc/src/herculeum/sphinx/helpers.py/shutdown_application