MCPcopy Create free account
hub / github.com/ResearAI/DeepScientist / verifyPythonRuntime

Function verifyPythonRuntime

bin/ds.js:2546–2556  ·  view source on GitHub ↗
(runtimePython)

Source from the content-addressed store, hash-verified

2544}
2545
2546function verifyPythonRuntime(runtimePython) {
2547 const result = runSync(
2548 runtimePython,
2549 ['-c', 'import deepscientist.cli; import cryptography; import _cffi_backend; print("ok")'],
2550 { capture: true, allowFailure: true }
2551 );
2552 if (result.status !== 0 && result.stderr) {
2553 process.stderr.write(result.stderr);
2554 }
2555 return result.status === 0;
2556}
2557
2558function readJsonFile(filePath) {
2559 if (!fs.existsSync(filePath)) {

Callers 1

ensurePythonRuntimeFunction · 0.85

Calls 2

runSyncFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected