Find .a3s/config.acl walking up from this file.
()
| 19 | |
| 20 | |
| 21 | def repo_config_path() -> Path: |
| 22 | """Find .a3s/config.acl walking up from this file.""" |
| 23 | here = Path(__file__).resolve() |
| 24 | for parent in here.parents: |
| 25 | candidate = parent / ".a3s" / "config.acl" |
| 26 | if candidate.exists(): |
| 27 | return candidate |
| 28 | raise SystemExit("could not locate .a3s/config.acl above this example") |
| 29 | |
| 30 | |
| 31 | def main() -> int: |