server: disable python stdout buffering

This commit is contained in:
Koushik Dutta
2023-03-18 08:05:14 -07:00
parent b7b6ac0f87
commit 2d3bb8798d
2 changed files with 3 additions and 2 deletions

View File

@@ -62,6 +62,7 @@ export class PythonRuntimeWorker extends ChildProcessWorker {
// stdin, stdout, stderr, peer in, peer out
stdio: ['pipe', 'pipe', 'pipe', 'pipe', 'pipe'],
env: Object.assign({
PYTHONUNBUFFERED: '1',
PYTHONPATH: path.join(process.cwd(), 'node_modules/@scrypted/types'),
}, gstEnv, process.env, env),
});