I wish this helpful for you I found this article which explains the official way to achieve what I wanted. Specifically, to User-Vars I added the key WSLENV with the value SECRET_KEY/u:DATABASE_URL/u. This fixed the problem immediately.
hope this fix your issue When any process get created it inherit the environment variables from it's parent process (the O.S. itself in your case). if you change the environment variables at the parent level, the child process is not aware of it. PyCharm allows you to change the environment variables from the Run\Debug Configuration window. Run > Edit Configurations > Environment Variables ->
Jenkins command in Execute shell cannot read environment variables from /etc/profile.d/xx.sh
it should still fix some issue Bash reads the profile only for interactive login shells, or if it is started with the --login option. It will not be read when performing a build step or when connecting a slave. The easiest workaround will be to explicitly source the profile by adding a
I think the issue was by ths following , The defaults you are editing affect only new Run configurations for the project you presently have open. I'm not sure that you can change the defaults for new projects. If it's even possible, I suspect you'll need to "look under the hood" in your $HOME/.PyCharm*/config/ directory.
Cannot start PyCharm Cannot find VM options file (Pycharm Professional 2017.2)