title: Read/Write files in Python
body: <p>I need to make a file readable and writable in python. Currently the file is read-only. I am running on a Windows machine. I run the following code:</p>
  
  <pre>
  <code>
  os.chmod(projectPath, stat.S_IWRITE | stat.S_IREAD)
  </code>
  </pre>
  
  <p>on a file that needs to be read/write. But when I try to execute the file that needs to be read write, I get the following:</p>
  
  <pre>
  <code>
  ISDEV : fatal error -2200: Could not overwrite file C:\WINDOWS\Temp\STixInstaller\STixInstallShield.ism
  </code>
  </pre>
  
  <p>So obviously, it is not making the file read/write. I then check the file permissions and it is still read-only.</p>
  
  <p>Any ideas why this fails or if there is an easier way to do this I am missing?</p>