Re: [Sikuli-driver] [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: Answered => Solved Stranger confirmed that the question is solved: Thank you. Paste your codes, it is resolved. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [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. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
[Sikuli-driver] [Question #656428]: How to get the image file name when a FindFailed exception happen
New question #656428 on Sikuli: https://answers.launchpad.net/sikuli/+question/656428 I want to get the image file name not found by region.find() when a FindFailed exception happens in my Python construct try: ... except: ... . could you tell how to get the file name, I need to know it and print into my log Thanks -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp