← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #660277]: How to use functions from the main script?

 

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

    Status: Open => Answered

aravind proposed the following answer:
Assuming that you want to call a function present in main.sikuli from
second.sikuli , your could should be similar to this

 second.sikuli ::
import main
def startSecondScript():
    y = main.test()
    print(y)
startSecondScript()  

main.sikuli ::
from sikuli import *
def test():
    return(123)


Please read the  relevant answer in the below link
https://answers.launchpad.net/sikuli/+question/660256

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.