Load a config file and merge it into the default options.
(filename)
| 93 | |
| 94 | |
| 95 | def cfg_from_file(filename): |
| 96 | """Load a config file and merge it into the default options.""" |
| 97 | import yaml |
| 98 | with open(filename, 'r') as f: |
| 99 | yaml_cfg = edict(yaml.load(f)) |
| 100 | |
| 101 | _merge_a_into_b(yaml_cfg, __C) |
no test coverage detected