Python doesn't work properly when I execute a script after using Right Click >> Command Prompt Here
Posted
by Dominic Bou-Samra
on Stack Overflow
See other posts from Stack Overflow
or by Dominic Bou-Samra
Published on 2010-05-31T11:03:58Z
Indexed on
2010/05/31
11:12 UTC
Read the original article
Hit count: 302
This is a weird bug. I know it's something funky going on with my PATH variable, but no idea how to fix it.
If I have a script C:\Test\test.py and I execute it from within IDLE, it works fine. If I open up Command Prompt using Run>>cmd.exe and navigate manually it works fine. But if I use Windows 7's convenient Right Click on folder >> Command Prompt Here then type test.py it fails with import errors.
I also cannot just type "python" to reach a python shell session if I use the latter method above.
Any ideas?
© Stack Overflow or respective owner