(usr_cfg, def_cfg=None)
| 18 | |
| 19 | |
| 20 | def load_config(usr_cfg, def_cfg=None): |
| 21 | cfg = ConfigObj() |
| 22 | cfg.merge(ConfigObj(def_cfg, interpolation=False)) |
| 23 | cfg.merge(ConfigObj(expanduser(usr_cfg), interpolation=False, encoding='utf-8')) |
| 24 | cfg.filename = expanduser(usr_cfg) |
| 25 | |
| 26 | return cfg |
| 27 | |
| 28 | |
| 29 | def ensure_dir_exists(path): |
no outgoing calls
no test coverage detected