server: cleanup old dependencies on runtime version change

This commit is contained in:
Koushik Dutta
2022-12-11 12:51:08 -08:00
parent ef36898adc
commit 2294d2f22d
4 changed files with 66 additions and 40 deletions

View File

@@ -47,7 +47,7 @@ export class PythonRuntimeWorker extends ChildProcessWorker {
}
}
const pythonPath = os.platform() === 'win32' ? 'py.exe' : 'python3';
const pythonPath = process.env.SCRYPTED_PYTHON_PATH || (os.platform() === 'win32' ? 'py.exe' : 'python3');
this.worker = child_process.spawn(pythonPath, args, {
// stdin, stdout, stderr, peer in, peer out