MCPcopy Create free account
hub / github.com/KnockOutEZ/wigolo / getPythonBin

Function getPythonBin

src/python-env.ts:139–144  ·  view source on GitHub ↗
(dataDir?: string)

Source from the content-addressed store, hash-verified

137 * Falls back to system `python3` when the venv has not been created yet.
138 */
139export function getPythonBin(dataDir?: string): string {
140 const dir = dataDir ?? getConfig().dataDir;
141 if (!dir) return 'python3';
142 const venvPython = venvBinPath(dir, 'python');
143 return existsSync(venvPython) ? venvPython : 'python3';
144}

Callers 1

python-env.test.tsFile · 0.85

Calls 2

getConfigFunction · 0.85
venvBinPathFunction · 0.85

Tested by

no test coverage detected