(dwarf: dict[str, Any], key: str, default: str)
| 46 | |
| 47 | |
| 48 | def _dwarf_prefix(dwarf: dict[str, Any], key: str, default: str) -> str: |
| 49 | value = dwarf.get(key, default) |
| 50 | if not isinstance(value, str) or not value.strip(): |
| 51 | value = default |
| 52 | return value.replace("\\", "/").strip("/") |
| 53 | |
| 54 | |
| 55 | def _path_prefix_variants(path: Path) -> list[str]: |
no test coverage detected