()
| 23 | |
| 24 | |
| 25 | def get_executable() -> Path: |
| 26 | candidates = get_candidate_paths() |
| 27 | for candidate in candidates: |
| 28 | if candidate.exists(): |
| 29 | log.debug(f"{candidate} found") |
| 30 | if candidate.is_file(): |
| 31 | return candidate |
| 32 | else: |
| 33 | raise FileNotFoundError(f"{candidate} is not a file") |
| 34 | else: |
| 35 | log.debug(f"{candidate} not found") |
| 36 | raise FileNotFoundError(f"Could not find any of {candidates}") |
| 37 | |
| 38 | |
| 39 | def cli() -> None: |
no test coverage detected
searching dependent graphs…