Question #699892 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/699892

    Status: Open => Answered

RaiMan proposed the following answer:
1. reload(sub) is only needed, if you change its content while running
the main again in the IDE

2. the correct usage would be:
import sub
reload(sub)
from sub import * # only needed if you want to use the names in sub without 
sub.name

3. in 2.0.x reload is no longer needed for valid .sikuli Scripts that
are found on sys.path

so:
#main.sikuli
from sub import *
action()

#sub.sikuli
from sikuli import *
def action():
    popup("hello from sub")

should work (both .sikuli in same folder)

test it by changing the popup text in sub and run main again

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to