sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #04576
Re: [Question #166991]: Easiest way to convert sikuli code to java?
Question #166991 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/166991
Status: Open => Answered
RaiMan proposed the following answer:
you need an
from sikuli.Sikuli import *
in the first lien of your script, in all cases when you use a Jython
interpreter to run the contained .py directly.
furthermore your script does not know where your images live in this
case. You have to set the image path yourself.
What is your intention doing this? There are only disadvantages against the run as
java -jar sikuli-script.jar test.sikuli
The version you are trying makes only sense, if you need to do some
things, before Sikuli is initialized.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.