(cfg_name, directory)
return info
Read configuration file

    If not available, run configuration helper.
Read configuration file
Read configuration file
def read_cfg_file(cfg_name, directory):
    """Read configuration file

    If not available, run configuration helper.

    """
    cfg_file = _cfg_file_name(cfg_name, directory)
    info = _read_cfg_file(cfg_file)

    while (info is None):
        print("Missing {} configuration file".format(cfg_file))
        if (util.ask_yes_or_no("Run configuration helper now?")):
            configure(Namespace(cfg_dir=directory, cfg=cfg_name))
        else:
            print("Abort")
            return

        info = _read_cfg_file(cfg_file)

    return info
def read_cfg_file ( cfg_name , directory ) : cfg_file = _cfg_file_name ( cfg_name , directory ) info = _read_cfg_file ( cfg_file ) while ( info is None ) : print ( "Missing {} configuration file" . format ( cfg_file ) ) if ( util . ask_yes_or_no ( "Run configuration helper now?" ) ) : configure ( Namespace ( cfg_dir = directory , cfg = cfg_name ) ) else : print ( "Abort" ) return info = _read_cfg_file ( cfg_file ) return info