sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #12665
Re: [Question #206250]: Getting as ERROR saying - ".png looks like a file, but can't be found on the disk. Assume it's text."
Question #206250 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/206250
RaiMan proposed the following answer:
Uuuups, yes - this is a bug.
Because each imported script is put on the image path, all images in
imported scripts are found all over the place.
But the images in the main script are found through bundle path, which
is not on the image path.
Try adding this at the beginning of your main script:
p = getBundlePath() # images of main
if not p in (list(getImagePath())): addImagePath(p)
this will add your main scripts image path to the global image path.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.