(cfg_file, context=None)
| 68 | |
| 69 | |
| 70 | def load_config(cfg_file, context=None): |
| 71 | with open(cfg_file, "r") as fin: |
| 72 | raw = fin.read() |
| 73 | template = jinja2.Template(raw) |
| 74 | instance = template.render(context) |
| 75 | cfg = yaml.safe_load(instance) |
| 76 | cfg = easydict.EasyDict(cfg) |
| 77 | return cfg |
| 78 | |
| 79 | |
| 80 | def parse_args(): |
nothing calls this directly
no outgoing calls
no test coverage detected