I have two files, both on my Desktop:
sotest.py
print 'Hello world'
sotest2.py
foo = open ('sotest.py', 'r')
I'm running Python out of Notepad++ as follows (from Use IDLE to launch script using the full file path):
C:\Program Files (x86)\Python27\Lib\idlelib\idle.bat -r "$(FULL_CURRENT_PATH)"
Running sotest2.py returns the following:
Traceback (most recent call last):
File "C:\Users\doncherry\Desktop\sotest2.py", line 7, in <module>
foo = open ('sotest.py', 'r')
IOError: [Errno 2] No such file or directory: 'sotest.py'
When running the same file out of Pyhton's IDLE, it runs without errors. If I change sotest2.py to the following, it works out of Notepad++ without problems.
import sotest
Which part of my configuration do I need to change to make the opening work? I'd prefer to change some setting in Notepad++ rather than adding code to each of my Python files.