(config_file=CONFIG_FILE)
return config
Load the current config as a dictionary

    merges overrides from config.yaml with default config
Load the current config as a dictionary
Load the current config as a dictionary
def load_config(config_file=CONFIG_FILE):
    """Load the current config as a dictionary

    merges overrides from config.yaml with default config
    """
    if os.path.exists(config_file):
        with open(config_file) as f:
            config_overrides = yaml.load(f)
    else:
        config_overrides = {}

    secrets = load_secrets()
    config = _merge_dictionaries(dict(default), secrets)
    config = _merge_dictionaries(config, config_overrides)
    return config
def load_config ( config_file = CONFIG_FILE ) : if os . path . exists ( config_file ) : with open ( config_file ) as f : config_overrides = yaml . load ( f ) else : config_overrides = { } secrets = load_secrets ( ) config = _merge_dictionaries ( dict ( default ) , secrets ) config = _merge_dictionaries ( config , config_overrides ) return config