fix: bridge.ts ENOENT check for Python venv fallback

This commit is contained in:
Siddharth Kumar Sah
2026-03-22 20:52:51 +08:00
parent 818d2acd94
commit 977b5f5ec0
+1 -1
View File
@@ -10,7 +10,7 @@ const PYTHON_DIR = resolve(__dirname, "../python");
/** Try venv first, then system python. */
function getPythonPath(): string {
const venvPath = process.env.PYTHON_VENV_PATH || "/opt/venv";
const venvPath = process.env.PYTHON_VENV_PATH || resolve(__dirname, "../../../.venv");
return `${venvPath}/bin/python3`;
}