(cmd)
| 42 | // ── Python dependency management ───────────────────────────────────── |
| 43 | |
| 44 | function which(cmd) { |
| 45 | try { |
| 46 | return execSync(`which ${cmd}`, { encoding: "utf-8", stdio: ["pipe", "pipe", "pipe"] }).trim(); |
| 47 | } catch { |
| 48 | return null; |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | function isPythonPackageInstalled(pythonPath) { |
| 53 | try { |