← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #656428]: How to get the image file name when a FindFailed exception happen

 

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

    Status: Open => Answered

masuo proposed the following answer:
Try this codes.

import os.path
Settings.UserLogs = True
Debug.setUserLogFile(os.path.join(getBundlePath(),"log.txt"))
try:
    find("1502972319179.png")
except FindFailed, e:
    logtxt = "%s" % e 
    Debug.user(logtxt)

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