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

Sanitize process.env for spawned processes to remove external PYTHONHOME #619

Merged
merged 1 commit into from
Jul 24, 2022

Conversation

joeyballentine
Copy link
Member

Fixes #583, I think. Can't really test it myself.

Comment on lines +8 to +10
const env = { ...process.env };
delete env.PYTHONHOME;
export const sanitizedEnv = env;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this actually work? I though envs were inherited System > User > Program, so doing deleting it from the program envs wouldn't do anything.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@joeyballentine joeyballentine merged commit 6abdd48 into main Jul 24, 2022
@joeyballentine joeyballentine deleted the issue-583 branch July 24, 2022 20:17
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

Successfully merging this pull request may close these issues.

PYTHONHOME env var appears to mess with integrated python
2 participants