Resolve a path that may be absolute or relative to `base`.
(maybe_path: str, base: Path)
| 85 | |
| 86 | |
| 87 | def resolve_path(maybe_path: str, base: Path) -> Path: |
| 88 | """Resolve a path that may be absolute or relative to `base`.""" |
| 89 | p = Path(maybe_path) |
| 90 | if p.is_absolute(): |
| 91 | return p |
| 92 | return (base / p).resolve() |
| 93 | |
| 94 | |
| 95 | # -------- HDR → SDR tone mapping (HLG / PQ sources) -------------------------- |
no outgoing calls
no test coverage detected