* Checks if a Python command is available on the system.
(command: string)
| 134 | * Checks if a Python command is available on the system. |
| 135 | */ |
| 136 | function isPythonAvailable(command: string): boolean { |
| 137 | try { |
| 138 | execSync(`${command} --version`, { stdio: 'ignore' }) |
| 139 | return true |
| 140 | } catch { |
| 141 | return false |
| 142 | } |
| 143 | } |
| 144 | |
| 145 | /** |
| 146 | * Detects the virtual environment root for a given Python executable path. |
no outgoing calls
no test coverage detected