Example #1
0
 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
Example #2
0
 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)