def mock_unsafe_load(f): cfg = _unsafe_load(f) if BASE_KEY in cfg: cfg[BASE_KEY] = reroute_config_path(cfg[BASE_KEY]) return cfg
def merge_from_file(self, cfg_filename: str, *args, **kwargs): cfg_filename = reroute_config_path(cfg_filename) with reroute_load_yaml_with_base(): return super().merge_from_file(cfg_filename, *args, **kwargs)