title: Pycharm Professional with WSL: Cannot read environment variables set with ~/.profile
body: <p>I'm writing a Django application that requires redisqueue, so I'm having to use WSL to continue development on Windows. I was pleased to find that Pycharm Professional allows you to configure a WSL Python interpreter. However, my first problem was that it was unable to find any Environmental Variables. No big deal, <a href="https://help.ubuntu.com/community/EnvironmentVariables" rel="noreferrer">this page</a> says I can just <code>export</code> them from a file called <code>~/.profile</code>. I add them like so:</p>
  
  <pre><code>export SECRET_KEY="xxxxx"
  export DATABASE_URL="postgres://xxxxx"
  </code></pre>
  
  <p>But my Pycharm interpreter can't find them, always complaining:</p>
  
  <pre><code> SECRET_KEY = os.environ['SECRET_KEY']
  File "/usr/lib/python3.6/os.py", line 669, in __getitem__
    raise KeyError(key) from None
  KeyError: 'SECRET_KEY'
  </code></pre>
  
  <p>However, if I pull up an Ubuntu bash terminal and run Python3, it finds the value normally. I tried using <code>~/.pam_environment</code> and <code>./bashrc</code>, but neither of those worked, even when checked manually. </p>
  
  <p>How can I give PyCharm/WSL access to my WSL Environ Vars? </p>