Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 2
    "I want environment variables explicitly set in the shell to take precedence" - what about modifying your env loader to avoid setting a variable that's already set Commented Oct 26, 2023 at 16:41
  • 4
    what does your load_dotenv do / how is it implemented? Can you just test there if the variable already exists before loading a new value from the file? Do you care bout the difference between exported shell variables (which end up in the environment of programs the shell runs) and non-exported ones (which don't)? Commented Oct 26, 2023 at 19:09