I like having my .py files open with my IDE, PyScripter. That is, when I double-click on a .py file, it opens in my IDE.
The problem is that when I want to run a python script that isn't in the current directory (e.g. it is in c:\Python27\Scripts), I can't do python script_in_path.py
or I get the error
Can't open file 'script_in_path.py': [Errno 2] No such file or directory
If I change the file association for .py files (e.g. by right-clicking, open with, always use python), I can do script_in_path.py
with no problem. But I don't want .py files associated with the python interpreter!
How can I make python script_in_path.py
work while still having .py files associated with my IDE?
https://stackoverflow.com/questions/5299241/cant-open-file-django-admin-py-errno-2-no-such-file-or-directory is related, except the answers all boil down to associating .py files with the interpreter, which is what I do not want to do.