← 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: Answered => Open

Matt Pappas is still having a problem:
Hello,
Thank you again for your reply.  I'm pasting a pruned down copy of the actual code I'm running in the IDE.  I'm obviously not quite getting your point, because the script is still erroring.  Is there a way you could point out my error in the context of the script below?

Many thanks,
Matt


SUB-SCRIPT

from sikuli import *
def function_save.function_save():
    # Performs plan save and waits for it to complete
    click(Pattern("Lxii.png").targetOffset(-90,-1))
    sleep(1)
    waitVanish(Pattern("2-1.png").similar(0.50),5)
    waitVanish(Pattern("2-1.png").similar(0.50),5)
    waitVanish(Pattern("2-1.png").similar(0.50),5)
    waitVanish(Pattern("2-1.png").similar(0.50),5)


MAIN SCRIPT

from datetime import datetime
from datetime import date
import function_save
for x in xrange(0,30):

    function_save

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