MCPcopy Index your code
hub / github.com/promptfoo/promptfoo / getConfiguredPythonPath

Function getConfiguredPythonPath

src/python/pythonUtils.ts:48–54  ·  view source on GitHub ↗
(configPath?: string)

Source from the content-addressed store, hash-verified

46 * @returns The configured path, or undefined if neither config nor env var is set
47 */
48export function getConfiguredPythonPath(configPath?: string): string | undefined {
49 if (configPath) {
50 return configPath;
51 }
52 const envPath = getEnvString('PROMPTFOO_PYTHON');
53 return envPath || undefined;
54}
55
56export const state: {
57 cachedPythonPath: string | null;

Callers 2

initializeMethod · 0.90
runPythonFunction · 0.85

Calls 1

getEnvStringFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…