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

Hello again,

I was wondering if there's a way to get the current line number 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' + 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