(path: Path, *, cwd: Path | None = None, resolve: bool = False)
| 64 | |
| 65 | |
| 66 | def display_path(path: Path, *, cwd: Path | None = None, resolve: bool = False) -> str: |
| 67 | base = cwd or Path.cwd() |
| 68 | display = path.resolve() if resolve else path |
| 69 | try: |
| 70 | return display.relative_to(base).as_posix() |
| 71 | except ValueError: |
| 72 | return path.as_posix() |
| 73 | |
| 74 | |
| 75 | def reset_output_dir(output_dir: Path) -> None: |
no test coverage detected