Before you can open a file from Python, you must set "Read" permissions on the file for your username. Python opens files using the logged in user, so you must give your user account "Read" access using the Windows permissions editor. The permissions editor is available for each file on your system.
Instructions
Things You'll Need
- Administrative rights on the computer
- 1Right-click the file you want to edit and click "Properties." Click the "Security" tab. A list of current permissions is shown.
- 2Click "Edit." Type your name in the text box and click "OK." Your name is added to the file's list of allowed users.
- 3Check the box labeled "Read" to give your account "Read" access to the file. Check "Full Access" if you want to give your username full rights to the file.
- 1