sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #11381
Re: [Question #201418]: my main.sikuli skips over import
Question #201418 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/201418
Status: Open => Answered
RaiMan proposed the following answer:
Your imported modules seem to contain normal script code. This is
executed only once, when the module is imported the first time after
starting the IDE (hence the first run). So a second run will not execute
the stuff again.
So you either have to run your script from command line (so it runs only
once by definition) or use the reload feature:
import uninstall
reload(uninstall)
from uninstall import *
BTW:
from uninstall import *
is only necessary, if you use any names from the subs in your main.
see: http://sikuli.org/docx/globals.html#importing-other-sikuli-scripts-
reuse-code-and-images right at the beginning.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.