src/ols_client/constants.py
def get_config():
    """Gets the configuration for this project from the default JSON file, or writes one if it doesn't exist

    :rtype: dict
    """
    if not os.path.exists(CONFIG_PATH):
        write_config({})

    with open(CONFIG_PATH) as f:
        return json.load(f)
def get_config():
    if not os.path.exists(CONFIG_PATH):
        write_config({})

    with open(CONFIG_PATH) as f:
        return json.load(f)
def get_config ( ) : if not os . path . exists ( CONFIG_PATH ) : write_config ( { } ) with open ( CONFIG_PATH ) as f : return json . load ( f )
Gets the configuration for this project from the default JSON file, or writes one if it doesn't exist

    :rtype: dict
Gets the configuration for this project from the default JSON file or writes one if it doesn t exist