title: Python Windows open permission denied as adminstrator
body: <p>I have simple python code on Windows that reads/writes a log file that I don't want standard users to have write access, so I have made the log files restricted to Adminstrator write privileges.</p>
  
  <pre><code>import os
  l = open('filename.log', 'w')
  </code></pre>
  
  <p>I can't figure out how to debug it without running into a permission denied error. Debugging in PyCharm and even though starting PyCharm as admin, I get the error.</p>
  
  <p>I can, however, run a python shell as admin and open/write my log file without error.</p>
  
  <p>How can I run PyCharm to debug without getting the error?</p>