Question #232542 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/232542
Status: Open => Answered
RaiMan proposed the following answer:
With this setup I have no problems in IDE:
# main.sikuli
import sub
reload(sub)
sub.subf()
#sub.sikuli
from sikuli import *
print "from sub at 0"
def subf():
print "from sub at 1"
find("1373994791155.png")
highlight(-2)
# message output
from sub at 0
from sub at 1
[log] highlight M[8,41 150x32]@S(0)[0,0 1440x900] S:1,00 Center:83,57 for 2.0
secs
[info] Exit code: 0
-- no add to sys.path necessary if both (main and sub) are in same folder.
-- from sikuli import * only needed in subs
-- when using from PCBAutoFns import *, play() is sufficient
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp