|
let ps = child_process.spawn(intepreter, [PYTHON_BRIDGE_SCRIPT], options); |
Issue
Hardcoding [PYTHON_BRIDGE_SCRIPT] here prevents users from passing any arguments to the interpreter.
My use case
I want to pass -u to python3 in order to flush stdout after every print.
This way I don't have to manually flush the stdout after (via sys.stdout.flush()) or within (via print(message, flush=True) every print.
Related Issues
#35
node-python-bridge/index.js
Line 22 in 9b13b40
Issue
Hardcoding
[PYTHON_BRIDGE_SCRIPT]here prevents users from passing any arguments to the interpreter.My use case
I want to pass
-utopython3in order to flush stdout after everyprint.This way I don't have to manually flush the stdout after (via
sys.stdout.flush()) or within (viaprint(message, flush=True) every print.Related Issues
#35