New answers tagged


Your code snippet is not as simple as you may think. Environment variables are set separately for each process (possibly with inheritance), so if you set MY_ENV_VAR in a shell and test for it from the same shell (with Python code or otherwise) it will be set. If you run Python from a different shell, it won't be. Even in the same shell, you may lose ...

Top 50 recent answers are included