Source contents of .env before program execution


I am using autoenv tor capturing site specific parameters used by my app. I am able to cd into the project directory and have those vars sourced into the environment in the shell. Pycharm doesn't recognise them. Is there either an explicit way to tell IDE to source .env files before invocation, or how does one use "source .env" in the run configuration? When I try to load it as an external tool it fails because it says it can not find "source" to run it.

Permanently deleted user

Feel free to vote for this feature request PY-5543. There are several workarounds mentioned in the comments.