New question #141302 on Sikuli:
https://answers.launchpad.net/sikuli/+question/141302

*** this is a how to

current release: Jython 2.5.2 rc3 (they say it might be the last one before 
release)

Be aware, that some things might not behave as expected: Sikuli is tested and 
runs with Jython 2.5.1

If you want to use it, you have to make sure, that the pointer to Jython/Lib 
comes before the entry sikuli-script.jar/Lib (needed to find the Python layer 
of Sikuli: from sikuli.Sikuli import *) in sys.path.

You should copy sikuli-script.jar to a place, so that the resulting absolute 
path does not contain any blanks and use it in the further steps (bug 702155)

There might be many ways to do this (depending on your environment and goals), 
but this at least works:

--- e.g. you have Jython in c:\Jython2.5.2rc3 and copied sikuli-script.jar to 
this directory

--- set the environment variable CLASSPATH as the path to sikuli-script.jar 

--- set the environment variable JYTHONPATH
set JYTHONPATH=c:\Jython2.5.2rc3\Lib;c:\Jython2.5.2rc3\sikuli-script.jar

--- use the jython.bat in Jython/bin to run a .py containing Sikuli features

--- or make yourself a .cmd containing:
set CLASSPATH= ... see above
set JYTHONPATH= ... see above
Path-to-Jython\bin\jython.bat Path-to-your-script.py

--- comment on NetBeans/Eclipse:
If you use the Python plugins together with Jython 2.5.2 just check the 
generated sys.path in these environments. It should be already in the correct 
sequence.


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

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to