(configPath?: string)
| 46 | * @returns The configured path, or undefined if neither config nor env var is set |
| 47 | */ |
| 48 | export 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 | |
| 56 | export const state: { |
| 57 | cachedPythonPath: string | null; |
no test coverage detected
searching dependent graphs…