← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #404660]: HowTo: Find one image out of a list of given images

 

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

Alex posted a new comment:
in the cycle for me, it works this way:

while True: 
    try:
        found = os.path.split(findBest(imgs).getImageFilename())[1]
        popup("%s is #%d" % (found, imgs.index(found)))
        break
    except:
        continue

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