← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #245732]: From a .sikuli how to call a parameterized method available in a different .sikuli.

 

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

    Status: Answered => Open

Garima Kumar is still having a problem:
Hello Obiwan,
thanks for the reply,with createWorkflow("Cardiac"). it's working fine.
but now one more error came into picture, i am passeing an image's path like "E:\Repository\PatientName.png".
this name is passed to the method, but at the time to check for the existence of this image on screen, it's failing.
i am using this image in method like
lib.sikuli
def myMethod(patientName):
    if exists(patientName)
        click("E:\Repository\seriesButton.png")

callee.sikuli
import lib
lib myMethod("E:\Repository\PatientName.png")

got an error
[error] NameError (global name 'exists' es not defined)

Regards
Garima

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