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.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to