sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #17312
Re: [Question #225953]: Save name or picture captured on a file txt
Question #225953 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/225953
Raphael Silva gave more information on the question:
I tried use the your example, but gave error. Can you help me ?
# my script
import os
import shutil
dir = "C:\Documents and Settings\raphael.silva\Meus documentos\Minhas imagens\TEST"
img = capture(SCREEN) # stores a shot as temp file
imgNew = "test"
shutil.move(img, os.path.join(dir, imgNew + ".png"))
error:
[error] Mensagem de erro: Traceback (most recent call last):
File "C:\DOCUME~1\RAPHAE~1.SIL\CONFIG~1\Temp\sikuli-tmp1929483483765301797.py", line 6, in
shutil.move(img, os.path.join(dir, imgNew + ".png"))
File "C:\Arquivos de programas\Sikuli X\sikuli-script.jar\Lib\shutil.py", line 205, in move
File "C:\Arquivos de programas\Sikuli X\sikuli-script.jar\Lib\shutil.py", line 96, in copy2
File "C:\Arquivos de programas\Sikuli X\sikuli-script.jar\Lib\shutil.py", line 52, in copyfile
IOError: (13, 'Permission denied', 'C:\\Documents and Settings\raphael.silva\\Meus documentos\\Minhas imagens\\TEST\\teste.png')
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.