-
Notifications
You must be signed in to change notification settings - Fork 137
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
Custom subprocess environment variables for Python embedded #989
Conversation
Kudos, SonarCloud Quality Gate passed! |
Can you clarify the scenario for this? The name of the new property is |
The debug server might be an executable that embeds Python, then It might not contain the necessary Python's initialization paths on its environment paths. Once the subprocess would be a Python process, we need to initialize it with all required paths. |
Ah, I see, so this is basically a companion for the "python" configuration property then? I think calling it "pythonEnv" would make this clearer. Out of curiosity, does setting the requisite variables directly in |
Yes, I can change the host variables and it would be inherited by the subprocess, but maybe we don't want to change the host environment variables. It makes sense if i can launch the new process with custom variables. It worth mentioning that the host process can be a Delphi, or C# or whatever application language made, but not the Python executable itself. Then it wont have the Python environment paths settings. |
I totally agree to call it PythonEnv, though. |
Changed! |
Kudos, SonarCloud Quality Gate passed! |
Python embedded might not have environment variables set to Python paths and host application might not want to change its own environment settings.
For example (Android):
Tested on Windows, Linux, MacOS (Intel and M1) and Android.