Skip to content

Commit

Permalink
server: disable python stdout buffering
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Mar 18, 2023
1 parent b7b6ac0 commit 2d3bb87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions server/src/plugin/runtime/python-worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
});
Expand Down

0 comments on commit 2d3bb87

Please sign in to comment.