Run Python Console changes interpreters after 1st open\close

I am using PyCharm 2.0.2 and a virtualenv.  I have adjusted the settings and everything seems ok. The 1st time I activate a python console it loads the python in the virtualenv:

C:\My Web Sites\python\env-1\Scripts\python.exe -u C:\Program Files\JetBrains\PyCharm 2.0.2\helpers\pydev\ 61275 61276

PyDev console: starting.

import sys; print('Python %s on %s' % (sys.version, sys.platform))

Python 2.7 (r27:82525, Jul  4 2010, 09:01:59) [MSC v.1500 32 bit (Intel)] on win32

sys.path.extend(['C:\\Program Files\\JetBrains\\PyCharm 2.0.2\\helpers', 'C:\\My Web Sites\\python'])

1 comment
Comment actions Permalink

Here is a little more detail:

It always starts the correct version the first time.

It usually starts python 2.5 when restarting, or starting a second or third instance of the console.

Occasionally it will restart with the correct version (about twice in 15 tries.)

And a side question - is there a setting where I can add additional paths to the 'sys.path.extend(...)' that executes when the console is started?


Please sign in to leave a comment.