← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #224366]: Reuse of code through import

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
with reference to my comment #3

xyz is the name of your SUB-SCRIPT (somename.sikuli), which is the
module name (somename in this case).

so in your main script:

import somename
for x in xrange(30):
    somename.function_save()

a function call ALWAYS needs brackets, even if parm list is empty.

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