thisismedium / virtualenv-commands

Additional commands to augment the python virtualenv package.
http://thisismedium.com/labs/virtualenv-commands/
BSD 2-Clause "Simplified" License
37 stars 7 forks source link

Trouble running installed scripts on Windows #5

Closed piotr-dobrogost closed 13 years ago

piotr-dobrogost commented 13 years ago

There's a problem with running installed scripts on Windows which can be seen below

C:\Users\Piotr>where python
C:\program files\Python\2.7\python.exe
C:\Users\Piotr>python c:\program files\Python\2.7\scripts\ve init
[Errno 2] No such file or directory
Is "ve-init" executable in the current path?
C:\Users\Piotr>

I tried to resolve this by following advices in How to run installed python script? question on StackOverflow but with no luck. I think what's special in this case and what makes problem hard is that ve script runs command scripts through OS (os.execvp()). Any ideas?

piotr-dobrogost commented 13 years ago

Solved by adding .py extension to PATHEXT environment variable.