MCPcopy Create free account
hub / github.com/Niko1221/Strata / venvPython

Function venvPython

app/host/server/python-resolver.mjs:19–21  ·  view source on GitHub ↗
(repo, platform = process.platform)

Source from the content-addressed store, hash-verified

17import { join } from 'node:path';
18
19export function venvPython(repo, platform = process.platform) {
20 return join(repo, '.venv', platform === 'win32' ? 'Scripts' : 'bin', platform === 'win32' ? 'python.exe' : 'python');
21}
22
23/** Does this interpreter start? A bare name is looked up on PATH by the spawn itself. */
24export function pythonStarts(command, args = []) {

Callers 4

loadEngineFunction · 0.90
programRunFunction · 0.90
resolvePythonFunction · 0.85

Calls 1

joinFunction · 0.50

Tested by

no test coverage detected