(existing: str | None, value: str)
| 602 | |
| 603 | |
| 604 | def _prepend_env_path(existing: str | None, value: str) -> str: |
| 605 | if not existing: |
| 606 | return value |
| 607 | |
| 608 | parts = [part for part in existing.split(os.path.pathsep) if part] |
| 609 | if value in parts: |
| 610 | return existing |
| 611 | return os.path.pathsep.join([value, *parts]) |
| 612 | |
| 613 | |
| 614 | def _find_local_vulkan_sdk_root() -> Path | None: |
no test coverage detected