MCPcopy
hub / github.com/lightningpixel/modly / getVenvDir

Function getVenvDir

electron/main/python-setup.ts:63–68  ·  view source on GitHub ↗
(userData: string)

Source from the content-addressed store, hash-verified

61
62/** Venv lives inside dependenciesDir on Windows (user-configurable drive), userData on Linux. */
63export function getVenvDir(userData: string): string {
64 if (process.platform === 'win32') {
65 return join(getSettings(userData).dependenciesDir, 'venv')
66 }
67 return join(userData, 'venv')
68}
69
70export function getVenvPythonExe(userData: string): string {
71 const venvDir = getVenvDir(userData)

Callers 4

getVenvPythonExeFunction · 0.85
getCertifiBundleFunction · 0.85
ensureSslPatchFunction · 0.85
runFullSetupFunction · 0.85

Calls 1

getSettingsFunction · 0.90

Tested by

no test coverage detected