I have made a python code that takes a screenshot and saves it. Am facing the following Error in saving a piece of code:
"site-packages\PIL\image.py",line 2131, in save...PermissionError:[error 13] permission denied: scr.png
Note
Folder permission is set to read/write.
Piece of code:
snapshot = ImageGrab.grab()
# Using png because it cannot write mode RGBA as JPEG
file = "scr.png"
snapshot.save(file)