"IOError: [Errno 13] Permission denied " - I see this error when trying to capture image using shutill
Hi,
I am using the below code to append time stamp to my file name
import shutil
stime = time.strftime(
print stime
img = Screen(
shutil.move(img, 'C:\Sikuli\ManApp scripts\
When i execute the above code i get the following error :
[error] IOError ( [Errno 13] Permission denied: 'C:\\Sikuli\\ManApp scripts\
[error] --- Traceback --- error source first line: module ( function ) statement 71: shutil ( copyfile ) IOError: [Errno 13] Permission denied: 'C:\\Sikuli\\ManApp scripts\
301: shutil ( move ) File "C:\Sikuli\
[error] --- Traceback --- end --------------
I have tried using this which works , but need a better format for date and time so used the above method:
shutil.move(img, '/Users/Log/img_' + str(time.time()) + '.png')
Please help.
Thanks in advance
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Test App
- Solved:
- Last query:
- Last reply: