Translate a host path back to its container form before using it internally. Inverse of :func:`format_path_for_display`. No-op when the env var is unset or when ``p`` is relative / unmatched.
(p: str | Path)
| 266 | |
| 267 | |
| 268 | def normalize_input_path(p: str | Path) -> str: |
| 269 | """Translate a host path back to its container form before using it internally. |
| 270 | |
| 271 | Inverse of :func:`format_path_for_display`. No-op when the env var is unset |
| 272 | or when ``p`` is relative / unmatched. |
| 273 | """ |
| 274 | return _apply_mapping(get_host_path_mappings(), p, reverse=True) |
| 275 | |
| 276 | |
| 277 | def _reset_db_path_mapping_cache() -> None: |