← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #272118]: Check if image file exist in getImagePath()

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
Interesting question ;-)

Currently no compound feature (could be
ImagePath.exists("someImage.png") returning true or false).

a workaround:
if Image.create("someImage.png").isValid():
    print "is on ImagePath"
else:
    print "not found on ImagePath"

I will make this a request bug.
Thanks for the idea.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.