MCPcopy Create free account
hub / github.com/vercel/vercel / getVenvEnv

Method getVenvEnv

packages/python/src/uv.ts:273–282  ·  view source on GitHub ↗
(venvPath: string)

Source from the content-addressed store, hash-verified

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
285async function getGlobalScriptsDir(pythonPath: string): Promise<string | null> {

Callers 1

runUvCmdMethod · 0.95

Calls 1

getProtectedUvEnvFunction · 0.85

Tested by

no test coverage detected