(venvPath: string)
| 271 | } |
| 272 | |
| 273 | private getVenvEnv(venvPath: string): NodeJS.ProcessEnv { |
| 274 | const binDir = isWin ? join(venvPath, 'Scripts') : join(venvPath, 'bin'); |
| 275 | const existingPath = process.env.PATH || ''; |
| 276 | |
| 277 | return { |
| 278 | ...getProtectedUvEnv(process.env, this.uvCacheDir), |
| 279 | VIRTUAL_ENV: venvPath, |
| 280 | PATH: existingPath ? `${binDir}${pathDelimiter}${existingPath}` : binDir, |
| 281 | }; |
| 282 | } |
| 283 | } |
| 284 | |
| 285 | async function getGlobalScriptsDir(pythonPath: string): Promise<string | null> { |
no test coverage detected