sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #22189
Re: [Question #238124]: Need sample of script with imported sub-scripts
Question #238124 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/238124
Status: Open => Answered
RaiMan proposed the following answer:
There is no way around working through comment #1 step by step to get
things working.
--- To possibly simplify the situation: I don't need to concurrently edit scripts in the IDE, or change them at run-time.
One will always have situations, where a main script and one or more of the imported scripts is open in the IDE and being edited - that is how it goes with try-and-error development.
"change them at run-time" - we are not at all talking about that.
When using a main-sub model together with the IDE, one really has to understand, how this works and what the pitfalls are.
# the overall picture again: (both in same folder)
# sub.sikuli
from sikuli import *
def action1():
print "I am a submodule"
# main.sikuli
import sub
sub.action1()
prints
I am a submodule
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.