(path: str)
| 84 | |
| 85 | def _find_by_sys_executable() -> str | None: |
| 86 | def _norm(path: str) -> str | None: |
| 87 | _, exe = os.path.split(path.lower()) |
| 88 | exe, _, _ = exe.partition('.exe') |
| 89 | if exe not in {'python', 'pythonw'} and find_executable(exe): |
| 90 | return exe |
| 91 | return None |
| 92 | |
| 93 | # On linux, I see these common sys.executables: |
| 94 | # |
no test coverage detected