(root: Path)
| 42 | extracted_dir.rename(target_dir) |
| 43 | |
| 44 | def find_single_subdir(root: Path) -> Path: |
| 45 | entries = [p for p in root.iterdir() if p.is_dir()] |
| 46 | if len(entries) == 1: |
| 47 | return entries[0] |
| 48 | # Try to pick the most likely one by name length (zip usually extracts into a single dir) |
| 49 | if entries: |
| 50 | return sorted(entries, key=lambda p: len(p.name))[0] |
| 51 | return root |
| 52 | |
| 53 | |
| 54 | def cmake_configure_in(template: str, values: dict) -> str: |
nothing calls this directly
no test coverage detected
searching dependent graphs…