(configname)
| 348 | |
| 349 | |
| 350 | def read_plainconfig(configname): |
| 351 | if not os.path.exists(configname): |
| 352 | raise FileNotFoundError(f"Config {configname} is not found. Please make sure that the file exists.") |
| 353 | with open(configname) as file: |
| 354 | return YAML().load(file) |
| 355 | |
| 356 | |
| 357 | def write_plainconfig(configname, cfg): |