mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
fix: bridge.ts ENOENT check for Python venv fallback
This commit is contained in:
@@ -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`;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user