← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #194789]: Thumbnails not shown when using setBundlePath()

 

Question #194789 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/194789

RaiMan posted a new comment:
Thanks for your feedback and insisting on your observations ;-)

I confirm your findings, but they are simply bugs ;-)

--- showing thumbnails when giving absolute path
- if you add an image filename with absolute path to the script, you see the filename (no thumbnail)
- after saving and reopening the script, a thumbnail is shown and the path is stripped from the image filename. Saving the script again and reopen it, you will find, that the image filename is shown with the path stripped (but no thumbnail), so on run you get an image file not found error(and a FindFailed, since Sikuli tries to search for the image filename text now)
- clicking on such a corrupted thumbnail, gives an error in the IDE, because the image file cannot be found (no Preview started)

workaround:
divide the path string into 2 concatenated substrings:
"absolute-path-to-image-folder"+"some-image.png"

This will not be touched by the thumbnail logic on script open.

I will look wether this is already bug reported or even solved in r930.

You found another workaround:
Setting the image path to the image folder lets Sikuli find the image despite having this stripped, corrupted file name.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.