(filepath, s, mode="w+")
| 86 | |
| 87 | |
| 88 | def write_to(filepath, s, mode="w+"): |
| 89 | print(mode) |
| 90 | path = Path(filepath) |
| 91 | path.parent.mkdir(exist_ok=True, parents=True) |
| 92 | |
| 93 | with path.open(mode=mode) as f: |
| 94 | f.write(s) |
| 95 | |
| 96 | |
| 97 | def read_args_from_config(config_path): |