title: Permission Error running through Notepad++
body: <p>I have a Python 2.7 program that prints a set of data to a text file at the end.  The program works perfectly if I import the file into the Pythonshell, but if I attempt to run the script directly from Notepad++ using Crl+R (also using Pythonshell), I get an error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:\Python27\ZeemanLab.py", line 140, in &lt;module&gt;
      with open("Mercury{}at{}A".format(wavelength, B), "w") as f:
  IOError: [Errno 13] Permission denied: 'Mercury55at55A'
  </code></pre>
  
  <p>The problem line:</p>
  
  <pre><code>with open("Mercury{}at{}A".format(wavelength, B), "w") as f: 
      f.write('A {}nm lamp in a {}A Magnetic field \n'.format(wavelength, B))
  </code></pre>
  
  <p>I am clueless as to what would make this difference.</p>