mirror of
https://github.com/koush/scrypted.git
synced 2026-02-18 12:32:37 +00:00
server: fix python plugins on windows
This commit is contained in:
@@ -45,7 +45,9 @@ export class PythonRuntimeWorker extends ChildProcessWorker {
|
||||
}
|
||||
}
|
||||
|
||||
this.worker = child_process.spawn('python3', args, {
|
||||
const pythonPath = os.platform() === 'win32' ? 'py.exe' : 'python3';
|
||||
|
||||
this.worker = child_process.spawn(pythonPath, args, {
|
||||
// stdin, stdout, stderr, peer in, peer out
|
||||
stdio: ['pipe', 'pipe', 'pipe', 'pipe', 'pipe'],
|
||||
env: Object.assign({
|
||||
|
||||
Reference in New Issue
Block a user