Jython Sikuli Script windows CMD

Asked by Tyler Leskanic

After looking through a couple questions and FAQs on launchpad i'm a little confused about jython/sikuli capability with cmd/powershell on windows..

Can i make a sikuli/jython script made in eclipse an executable file or even just launch from command line like i can a regular python file?

Python i just go in and say" python ex29.py" and it executes tried that with jython "jython test.py" and nothing happens, is such thing just not possible with jython?

Thanks!

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
Best RaiMan (raimund-hocke) said :
#1

Of course you can ;-)

You need a standalone installation of Jython and then it is just the same:

jython myscript.py

Look into the Jython docs for the environment variables to be used for addings to class path and sys.path.

Another possibility (no need for an extra Jython installation):
put your myscript.py into a folder myscript.sikuli and use
java -jar sikuli-script.jar myscript.sikuli

the paths have to be adjusted to your situation.

Revision history for this message
Tyler Leskanic (tleskanic) said :
#2

Thanks!