title: Opening an external file while running Python in IDLE from Notepad++
body: <p>I have two files, both on my Desktop:</p>
  
  <h3>sotest.py</h3>
  
  <pre class="lang-py prettyprint-override"><code>print 'Hello world'
  </code></pre>
  
  <h3>sotest2.py</h3>
  
  <pre class="lang-py prettyprint-override"><code>foo = open ('sotest.py', 'r')
  </code></pre>
  
  <p>I'm running Python out of Notepad++ as follows (from <a href="https://stackoverflow.com/questions/6598426/use-idle-to-launch-script-using-the-full-file-path">Use IDLE to launch script using the full file path</a>):</p>
  
  <pre class="lang-none prettyprint-override"><code>C:\Program Files (x86)\Python27\Lib\idlelib\idle.bat -r "$(FULL_CURRENT_PATH)"
  </code></pre>
  
  <p>Running sotest2.py returns the following:</p>
  
  <pre class="lang-none prettyprint-override"><code>Traceback (most recent call last):
    File "C:\Users\doncherry\Desktop\sotest2.py", line 7, in &lt;module&gt;
      foo = open ('sotest.py', 'r')
  IOError: [Errno 2] No such file or directory: 'sotest.py'
  </code></pre>
  
  <p>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.</p>
  
  <pre class="lang-py prettyprint-override"><code>import sotest
  </code></pre>
  
  <p>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.</p>