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

2017-08-18 Thread Stranger
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

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

2017-08-17 Thread masuo
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:

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

2017-08-17 Thread Stranger
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