sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #40200
Re: [Question #394807]: Sikuli Script running test twice.
Question #394807 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/394807
RaiMan proposed the following answer:
uups, just realized this:
from GoodxLoginScreen import GoodxConfig
this means you have this:
-- folder GoodxLoginScreen.sikuli
-- GoodxLoginScreen.py
-- GoodxConfig.py
import generally executes executable code at import time.
so your snippet is executed at import and normally == twice
You either have to restructure your files like this:
-- folder GoodxLoginScreen.sikuli
-- GoodxLoginScreen.py
-- folder GoodxConfig.sikuli
-- GoodxConfig.py
and change the import to
import GoodxConfig
or otherwise take care, that the code is not run at import.
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.