sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #49626
Re: [Question #676645]: ImportError: no module named sikuli
Question #676645 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/676645
Status: Open => Answered
RaiMan proposed the following answer:
the intro statements for standalone .py scripts is
import org.sikuli.script.SikulixForJython
from sikuli import *
... and sikulixapi.jar has to be on the classpath.
sorry, but the docs for that are a bit hidden ;-)
https://github.com/RaiMan/SikuliX-2014/wiki/Jython-in-IDEs-like-Eclipse-or-running-it-from-commandline
For running scripts from commandline simply use this command:
java -jar <path-to>/sikulix.jar -r <path-to>/myscript.sikuli
for the available parameters see:
https://sikulix-2014.readthedocs.io/en/latest/faq/010-command-line.html
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.