ninja-ide/ninja-ide — Issue #289: virtualenv on win32 not working: solution
Author: triquetra011
Created: 2012-02-23 20:36:29+00:00
State: open

Hello,
I was just browsing through your code and I would suggest changing:

venv = os.path.join(venv, 'Scripts', 'python')

to:

venv = os.path.join(venv, 'Scripts', 'python.exe')

in:

def _load_python_venv(self):

otherwise the following condition will always evaluate to True:

not os.path.exists(venv)

and it will be impossible for a windoze user to set up their virtualenv in ninja-ide (i.e. they will always get that QMessageBox with "This is not a valid Virtualenv Folder").

Regards,
Tomasz Kotarba