WindowsError: [Error 5] Access is denied (static files, images)
I'm using version control system, which establishing "read only" attributes for project files after submission. I'm getting an error "WindowsError: [Error 5] Access is denied" under html build.
Part of output log:
writing additional files... genindex py-modindex np-modindex search copying static files... Exception occurred: File "C:\Programs\Python27_x86\lib\shutil.py", line 247, in rmtree os.remove(fullname) WindowsError: [Error 5] Access is denied: 'H:\\MyProject\\docs\\_build\\html\\_static\\images\\my_image.png'
The image file "my_image.png" is in version control (
H:\\MyProject\\docs\\_static\\images\\my_image.png) and has "read only" attribute.