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

Use system's PATH value directly #379

Open
RobPasMue opened this issue Nov 9, 2024 · 1 comment
Open

Use system's PATH value directly #379

RobPasMue opened this issue Nov 9, 2024 · 1 comment

Comments

@RobPasMue
Copy link
Member

RobPasMue commented Nov 9, 2024

Awesome, thanks! @RobPasMue -- with respect to the changes to PATH, I start to wonder if what might be better than trying to undo the addition of the _internal directory would either be to:

a) attempt to directly read and use the registry key that Windows would use to set the environment of a newly-started command prompt for the PATH specifically -- i.e. what is set in the Control Panel for that environment variable
b) more generally look into ways to launch processes from Python such that they don't inherit the environment from the Python interpreter process but instead emulate the behavior of them being launched by the user from the Windows shell (i.e. explorer.exe; the initial environment is based on the Control Panel settings for environment variables). But that would be a separate PR / issue

Originally posted by @phx-mkoninckx in #377 (review)

@RobPasMue
Copy link
Member Author

@phx-mkoninckx - issue opened! I prefer option 1 IMO. Seems more reliable.

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