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/", line 23, in __getitem__

    raise KeyError(key)

KeyError: 'FOO'

Here’s a screenshot of Settings:

Screen Shot 2012-02-19 at 11.36.14 AM.png

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.


Screen Shot 2012-02-19 at 11.36.14 AM.png
1 comment
Comment actions Permalink

Hi Dave, that looks like a bug.

Vote for the issue to get notified about a progress.


Please sign in to leave a comment.