(cfg_file)
return True
Reset a previous configuration file in case it exists
Reset a previous configuration file in case it exists
Reset a previous configuration file in case it exists
def _rst_cfg_file(cfg_file):
    """Reset a previous configuration file in case it exists"""
    info = _read_cfg_file(cfg_file)

    if (info is not None):
        print("Found previous configuration:")
        pprint(info, width=80, compact=False)
        if (util.ask_yes_or_no("Reset?")):
            os.remove(cfg_file)
        else:
            print("Configuration aborted.")
            return False
    return True
def _rst_cfg_file ( cfg_file ) : info = _read_cfg_file ( cfg_file ) if ( info is not None ) : print ( "Found previous configuration:" ) pprint ( info , width = 80 , compact = False ) if ( util . ask_yes_or_no ( "Reset?" ) ) : os . remove ( cfg_file ) else : print ( "Configuration aborted." ) return False return True