sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #07452
Re: [Question #180960]: can't import modules
Question #180960 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/180960
Status: Open => Answered
RaiMan proposed the following answer:
This works on my Mac Lion:
- both scripts.sikuli are in same folder (then no sys.path entry is needed)
- main.sikuli opened and run in Sikuli-IDE
# main.sikuli
import sub
sub.test()
#sub.sikuli
from sikuli import *
def test():
popup("hello from sub")
BTW: sys.path has to contain the parent folder, where the to-be-
imported.sikuli is located.
You might have a filename problem: the libBrowser.sikuli does not
contain a libBrowser.py or vice versa, because you renamed the
xxx.sikuli in the finder !?
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.