← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #265219]: Can Sikuli be used with Jython 2.5.3

 

Question #265219 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/265219

    Status: Open => Answered

RaiMan proposed the following answer:
Besides that I recommend, to not copy around the sikuli-java-jar, but leave it in the install place and use references,
your setup is as it should be, to now use 
jython.bat somescript.py 
to run a script containing Sikuli features.

In the script you need the line
from sikuli import *

before any usage of a Sikuli feature.

This all is documented here: 
https://github.com/RaiMan/SikuliX-2014/wiki/Usage-in-Java-programming

which also contains a feature, that makes the use of JYTHONPATH
obsolete, if it would only be for Sikuli.

C:\jython2.5.3\Lib
is not needed in JYTHONPATH anyway, since this is a automatic path setting.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.