← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #673166]: [1.1.4] How to run .py script with Jython?

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
The sikulix.jar beginning with 1.1.4 does not contain the Jython stuff
any more.

The steps as mentioned on the download page lead to a Jython jar being
in the SikuliX extension folder, from where it is used by SikuliX IDE or
command line scriptruns the normal way (running .sikuli folders).

If you want to run plain .py files with Jython and SikuliX, then you
have to follow the setup and use instructions of Jython and finally take
care, that sikulix.jar is on the Java classpath at runtime of Jython.

BTW: Why do you use SikuliX this way and not the standard SikuliX usage
IDE/commandline?

Another possibility:
java -cp<sikulix>;<jython> org.python.util.jython main.py

... <...> have to be substituted by the real absolute paths to the jars.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.