This commit is contained in:
Koushik Dutta
2024-03-08 21:15:27 -08:00
parent 3e3e6504bf
commit 1cb9985cf8
5 changed files with 7 additions and 5 deletions

View File

@@ -13,7 +13,7 @@ export class PythonRuntimeWorker extends ChildProcessWorker {
static {
try {
const PortablePython = require('@bjia56/portable-python').PortablePython as typeof PortablePythonType;
const py = new PortablePython("3.9");
const py = new PortablePython("3.9", path.join(path.dirname(__dirname), '..', '..', 'py'));
const portablePython = py.executablePath;
if (fs.existsSync(portablePython))
process.env.SCRYPTED_PYTHON_PATH = portablePython;