← 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: Answered => Solved

Jean-Francois Thuong confirmed that the question is solved:
Thanks @RaiMan.

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

I am used to have Python script alone and it worked so far so ...


I have actually figured out what was missing:

* The script needed an extra "import" before the usual "from sikuli.Sikuli import *"
import org.sikuli.script.SikulixForJython

* Then I could use the command line:
 java -cp<sikulix>;<jython> org.python.util.jython main.py

PS: It worked with just the name of the jar if it is run from current
folder


I have entered a question and answer in StackOverflow here:
https://stackoverflow.com/questions/52148058/running-sikulix-1-1-4-python-scripts-from-command-line

Thanks a lot for your time!!

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