sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #38634
Re: [Question #295572]: Importing sikulix 1.1.1 into jython interactive shell (need current instructions)
Question #295572 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/295572
Status: Open => Solved
Jesse Sanford confirmed that the question is solved:
I am going to answer my own question to save raiman some time. Using the
answer from: https://answers.launchpad.net/sikuli/+question/261208 I was
able to piece this together:
1) Install sikulix >= 1.1.0 using the setup.jar that comes with it. (Install to an easy location like c:\sikulix)
2) Install java and jython. (Install to an easy location like c:\jython2.7)
3) Create the following environment in a command shell or batch script
and run:
set JYTHON_HOME=c:\jython2.7.0\
set SIKULIX_HOME=c:\sikulix\
set JYTHONPATH=%SIKULIX_HOME%sikulixapi.jar\Lib
set CLASSPATH=%SIKULIX_HOME%sikulixapi.jar;%CLASSPATH%
java -cp %JYTHON_HOME%jython.jar;%CLASSPATH% org.python.util.jython
4) You will end up with an interactive python repl:
Jython 2.7.0 (default:9987c746f838, Apr 29 2015, 02:25:11)
[Java HotSpot(TM) Client VM (Oracle Corporation)] on java1.8.0_91
Type "help", "copyright", "credits" or "license" for more information.
>>>
5) import popup from sikuli
>>> from sikuli import popup
6) call popup('hallo')
>>> popup('hallo')
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.