Setting console environment variables is broken in 2.0.2?
In Settings, I’m setting Python Console environment variables, but they’re not sticking.
If I set FOO=bar in settngs, and run the console and say:
import os
print os.environ['FOO']
I get:
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/Users/davel/apple/vipreg/new/env/bin/../lib/python2.7/UserDict.py", line 23, in __getitem__
raise KeyError(key)
KeyError: 'FOO'
Here’s a screenshot of Settings:
Is this just me? It’s happening on my desktop & laptop, both running MacOS 10.7.3 & PyCharm 2.0.2. I think this worked in 2.0.1.
Before anyone asks, I’m not confusing Django Console vs. Python Console.
Thanks.
Attachment(s):
Screen Shot 2012-02-19 at 11.36.14 AM.png
Please sign in to leave a comment.

Hi Dave, that looks like a bug.
Vote for the issue http://youtrack.jetbrains.com/issue/PY-5890 to get notified about a progress.