(script_path)
| 22 | |
| 23 | |
| 24 | def get_root(script_path): |
| 25 | folder = script_path.resolve().parent |
| 26 | while not (folder / ".git").exists(): |
| 27 | folder = folder.parent |
| 28 | if folder == folder.anchor: |
| 29 | raise RuntimeError("git repo not found") |
| 30 | return folder |
| 31 | |
| 32 | |
| 33 | def main(argv): |