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

PYTHON environment variables are ignored #1694

Open
slozier opened this issue Jun 22, 2023 · 0 comments
Open

PYTHON environment variables are ignored #1694

slozier opened this issue Jun 22, 2023 · 0 comments

Comments

@slozier
Copy link
Contributor

slozier commented Jun 22, 2023

Python defines a number of environment variables which we currently ignore. This is a placeholder issue for any tests failing because of this.

My initial thought is that ignoring the environment variables is probably fine when embedding in .NET but that we should probably handle the ones that make sense when running ipy.

We currently handle some of the variables with a prefix "IRON" (e.g. IRONPYTHONPATH) where it makes sense, but it's probably not necessary to have a prefix all the time (e.g. PYTHONVERBOSE).

Specific examples which I've run into recently:

  • PYTHONVERBOSE: this is ignored even though it's listed in the cli help (I'll file a PR to remove it from the help).
  • PYTHONUTF8: I'm currently adding utf8 mode (new in 3.7) which can be enabled via a cli argument or an option, however I will probably not add support for the environment variable in the initial implementation.
  • PYTHONIOENCODING: not implemented...
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