sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #45612
Re: [Question #663374]: Unable to call SikuliX 1.1.2 script by import function
Question #663374 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/663374
Status: Open => Answered
RaiMan proposed the following answer:
Sorry, but that is not what is suggested there.
If the main and imported script are in the same folder (a SikuliX script
is the someScript.sikuli and not the included someScript.py!!!) there is
no need to use sys.path.
# main as main.sikuli
import test
# sub in same folder
# as test.sikuli
from sikuli import * # not needed in main!!
... code
Be sure you have understood and checked all options mentioned in
(http://sikulix-2014.readthedocs.io/en/latest/scripting.html#importing-other-sikuli-scripts-reuse-code-and-images)
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.