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

Add an argument to loadPyodide to pass environment variables #3870

Merged
merged 12 commits into from Jun 12, 2023

Conversation

hoodmane
Copy link
Member

@hoodmane hoodmane commented May 18, 2023

This also updates the command line runner to pass in all ambient environment variables.

homedir is now deprecated. I added handling for homedir and env.HOME: if both are passed, raise an error, otherwise they mean the same thing.

Resolves #3869.

  • Add a CHANGELOG entry
  • Add / update tests
  • Add new / update outdated documentation

This also updates the command line runner to pass in all ambient
environment variables.

I added handling for `homedir` and `env.HOME`: if both are passed,
raise an error, otherwise they mean the same thing.

This changes the behavior of HOME in the command line runner: it
used to point to the current working directory, but now it will
point to the ambient home directory.
Copy link
Member

@ryanking13 ryanking13 left a comment

Choose a reason for hiding this comment

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

Thanks, @hoodmane!

I added handling for homedir and env.HOME: if both are passed, raise an error, otherwise they mean the same thing.

Maybe we can deprecate homddir argument? Setting HOME env variable seems more natural way to set the home directory.

docs/project/changelog.md Outdated Show resolved Hide resolved
Co-authored-by: Gyeongjae Choi <def6488@gmail.com>
@hoodmane hoodmane merged commit dcc504c into pyodide:main Jun 12, 2023
1 of 2 checks passed
@hoodmane hoodmane deleted the environment branch June 12, 2023 05:46
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.

None yet

2 participants