-
-
Notifications
You must be signed in to change notification settings - Fork 513
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
Includes PYTHON specific environment variables #1630
Includes PYTHON specific environment variables #1630
Conversation
for issue davidhalter#1629, environment variables that begin with PYTHON should also go to subprocess
Well, I have a few concerns.
My recommendation is capture your my_env_vars = {}
for k, v in os.environ.items():
if k.upper().startswith('PYTHON'):
my_env_vars.update({k: v})
CompiledSubprocess(executable, env_vars=my_env_vars) All that being said, if Windows environment variables are not case sensitive, then I gladly appreciate the simplification in that regard. |
Well, I'm rethinking my comment. Perhaps the best thing to do is to adhere to the behavior of Let me modify this PR with my updated recommendation |
@wingkinl @davidhalter , take a look at #1633. Will this do what you need? |
It works great! Thanks. |
@mrclary How about having the default of I don't want to provide full access to all popen arguments. It could also be interesting to only give access to a few selected variables by default (SYSTEMROOT, PYTHONPATH and maybe one or two more). |
No problem.
Hmm. Users may expect default |
fix #1629, environment variables that begin with PYTHON should also go to subprocess