-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
run python scripts as "python -c text" #8565
run python scripts as "python -c text" #8565
Conversation
98ccbdc
to
f11f81d
Compare
Thank you for addressing it. I guess that your change would resolve the reported error. I checked that a non-ascii working directory test with Unfortunately, even after your change, I realized that
There the parent assumed the default |
Further fixes welcome I expect, meanwhile if we're happy that this one is good and does fix some things then hopefully we can take that win. Progress is progress. |
also none of the callers of |
and not as "python -", and then passing the script as input
f11f81d
to
ace4865
Compare
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
and not as "python -", and then passing the script as input
this sidesteps encoding issues, fixes #8550
comments:
subprocess.run()
are now executed viasubprocess.check_output()
run_python_script
was the only caller making use ofinput_
in this code, I've removed thesubprocess.run()
branch altogetherlen(GET_ENVIRONMENT_INFO)
is 1717, the Windows limit should be 8191, it's much larger elsewhereenv_manager.py