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

Function isInVirtualEnv

packages/python/src/utils.ts:9–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7const isWin = process.platform === 'win32';
8
9export const isInVirtualEnv = (): string | undefined => {
10 return process.env.VIRTUAL_ENV;
11};
12
13export function getVenvBinDir(venvPath: string) {
14 return join(venvPath, isWin ? 'Scripts' : 'bin');

Callers 1

startDevServerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected