← Back to team overview

sikuli-driver team mailing list archive

[Question #194222]: How to get current execution line number in Sikuli?

 

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.