MCPcopy Create free account
hub / github.com/Noumena-Network/code / parsePythonVersion

Function parsePythonVersion

src/tools/REPLTool/pyReplFactory.tsx:182–186  ·  view source on GitHub ↗
(stdout: string)

Source from the content-addressed store, hash-verified

180}
181
182function parsePythonVersion(stdout: string): number[] | null {
183 const match = stdout.trim().match(/^(\d+)\.(\d+)\.(\d+)/)
184 if (!match) return null
185 return match.slice(1).map(part => Number.parseInt(part, 10))
186}
187
188function resolvePythonExecutable(): string {
189 const explicitCandidates = [

Callers 1

resolvePythonExecutableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected