sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #04471
Re: [Question #167497]: Reasking the question present in "141302" with topic Jython + Sikuli.
Question #167497 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/167497
Status: Open => Answered
RaiMan proposed the following answer:
--1. Sorry to say, but your class path looks very strange
- it looks like a system path, since normally bin directories need not be in a Java class path
- it contains Python27 site-packages entries - this makes no sense with Java
- for Jython and Python: modules living in the directory site-packages are automatically found, no need to have them in any path
- if there are packages, that can be used in both environments (Python and Jython - because they are written completely in Python) they can simply be referenced from the Jython environment using a module-name.pth file, that contains the directory entry of the Python environment
--2. you did not follow the recommendations mentioned in the referenced question
again compact:
- use the environment variables CLASSPATH and JYTHONPATH
- set CLASSPATH=absolute-path-to-sikuli-script.jar (wherever it might be stored, does not matter where)
- set JYTHONPATH=absolute-path-to-Jython\Lib;absolute-path-to-Jython\sikuli-script.jar\Lib
- run the Sikuli script using the jython.bat path-to-script-folder\scriptname.py
- you have to somehow set the image path
there is no need to move sikuli-script.jar elsewhere or even unjar it.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.