← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #177227]: How to import other scripts

 

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

RaiMan posted a new comment:
BTW: I stated, that the following would work --- rubbish LOL ;-)

# main.sikuli
from sub import *
popup(myMessage)

# sub.sikuli
theMessage = "Hello from sub"

and it just produced the error message that you expected (self
fulfilling prophecy ;-)

We both did not see, that this MUST produce a name error.
myMessage was used in main, but theMessage was defined sub -- again LOL

It was just a typing error -- sorry.

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