Beispiel #1
0
def get_config():
    try:
        result = pmp_config.get_config()
    except FileNotFoundError:
        cwd = pathlib.Path.cwd()
        download_and_extract_demo_data(cwd)
        result = pmp_config.get_config(cwd.joinpath("pymedphys-gui-demo"))

    return result
Beispiel #2
0
def get_logging_config():
    try:
        config = _config.get_config()
    except FileNotFoundError:
        return {}

    try:
        cli_config = config["cli"]
        logging_config = cli_config["logging"]
    except KeyError:
        return {}

    return logging_config