Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow passing arbitrary arguments to the python interpreter #42

Open
LarsGavris opened this issue May 3, 2023 · 0 comments
Open

Allow passing arbitrary arguments to the python interpreter #42

LarsGavris opened this issue May 3, 2023 · 0 comments

Comments

@LarsGavris
Copy link

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

LarsGavris added a commit to LarsGavris/node-python-bridge that referenced this issue May 3, 2023
LarsGavris added a commit to LarsGavris/node-python-bridge that referenced this issue May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant