sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #25095
[Question #246340]: Regarding "traceback"
New question #246340 on Sikuli:
https://answers.launchpad.net/sikuli/+question/246340
Hello team,
I am using traceback feature of sikuli.
i have a try.sikuli file. looks like
import traceback
def abc():
try:
click("image")//let's say image is not avaible at screen
except:
var = traceback.format_exc()
print str(var)
// Result
Traceback (most recent call last):
file "C:\temp\sikuli-16430xxxxx.py", line 4, in abc
FindFailed: can not find image on screen
line 1574, in Region.java
// What i expect
Traceback (most recent call last):
file "E:\try.py", line 4, in abc
FindFailed: can not find image on screen
line 1574, in Region.java
please help me how to get the current executable pv file name while using try...except..
Thanks and Regards
Garima
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.