title: How to allow a python script to make changes to program files?
body: <p>When someone downloads my program they get a <code>.py</code> file and another file.</p>
  <p>I want the <code>.py</code> file to move the other file to that person's <code>Program Files</code> folder but I get a <code>Permission denied</code> error.</p>
  <p>I can't get it to work.</p>
  <pre class="lang-py prettyprint-override"><code>import os 
  import glob
  import shutil
  
  
  files = glob.glob(&quot;Effects/*&quot;)
  for f in files:
      shutil.copy(f, &quot;C:/Program Files/Project/Output/&quot;)
  </code></pre>
  <p>The Error:</p>
  <pre><code>PermissionError: [Errno 13] Permission denied: 'C:/Program Files/Projects/Output\\Output.txt'
  </code></pre>
  <p>I am trying to get admin privileges.</p>
  <p>I use python 3.8.5</p>