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

Summary changed to:
How to get line number from which a function was called in Sikuli?

Description changed to:
Hello again,

I was wondering if there's a way to get the line number from which a
function was called when executing a Sikuli Script. I'm trying to do the
following:

def xclick(img):
   if exists(img):
      click(getLastMatch())
   else:
      print '[Error] Image not found: ' + img + ' on line' + 
FUNC_CALL_LINE_NUMBER
      exit(1)


Is this possible? 

Thanks in advance!

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to