(output_path: str | None)
| 32 | |
| 33 | |
| 34 | def _output_path(output_path: str | None) -> Path: |
| 35 | if output_path: |
| 36 | path = Path(output_path).expanduser() |
| 37 | if path.suffix.lower() != ".zip": |
| 38 | path = path.with_suffix(".zip") |
| 39 | path.parent.mkdir(parents=True, exist_ok=True, mode=0o700) |
| 40 | return path |
| 41 | return _support_dir() / f"uncommon-route-support-{_now_stamp()}.zip" |
| 42 | |
| 43 | |
| 44 | def _package_version() -> str: |
no test coverage detected