(pth, default_pth)
| 196 | |
| 197 | |
| 198 | def parse_config(pth, default_pth) -> dict: |
| 199 | logger.debug(f"Aura configuration located at {pth}") |
| 200 | |
| 201 | content = get_file_content(pth) |
| 202 | if content.startswith("---"): |
| 203 | default_cfg = get_file_content(default_pth) |
| 204 | content = default_cfg + "\n" + content |
| 205 | docs = list(ruamel.yaml.safe_load_all(content)) |
| 206 | return docs[-1] |
| 207 | else: |
| 208 | return ruamel.yaml.safe_load(content) |
| 209 | |
| 210 | |
| 211 | def load_config(): |
no test coverage detected