sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #05138
Re: [Question #170387]: Screenshot/Image path
Question #170387 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/170387
Status: Open => Answered
RaiMan proposed the following answer:
--- The images captured in the IDE using the capture button are stored in the script folder .sikuli.
For scripts in a new tab (not yet saved, this is in a temp folder), so it is always a good idea, to save a script.
get the current path:
print getBundlePath()
--- The images returned by a capture() are stored in the temp directory.
use
print capture()
to find out, where it is on your machine.
If you want to have the captured image files in a special folder, use
import shutil
import os
myImages = "some absolute path to a folder"
shutil.move(capture(), os.path.join(myImages, "some-name.png"))
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.