MCPcopy Create free account
hub / github.com/OpenDCAI/OpenPrism / resolvePythonExecutable

Function resolvePythonExecutable

apps/backend/src/services/plotService.js:7–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5import { ensureDir } from '../utils/fsUtils.js';
6
7function resolvePythonExecutable() {
8 if (process.env.OPENPRISM_PYTHON) return process.env.OPENPRISM_PYTHON;
9 if (process.env.CONDA_PREFIX) return `${process.env.CONDA_PREFIX}/bin/python`;
10 return 'python3';
11}
12
13export async function runPythonPlot(payload) {
14 const runId = crypto.randomUUID();

Callers 1

runPythonPlotFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected