(raw: str | None, base: Path)
| 25 | |
| 26 | |
| 27 | def resolve_path(raw: str | None, base: Path) -> Path | None: |
| 28 | if not raw: |
| 29 | return None |
| 30 | path = Path(raw).expanduser() |
| 31 | if not path.is_absolute(): |
| 32 | path = base / path |
| 33 | return path.resolve() |
| 34 | |
| 35 | |
| 36 | def write_tsv(path: Path, rows: list[dict[str, Any]], fieldnames: list[str]) -> None: |
no outgoing calls
no test coverage detected