← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #276722]: How to Convert Sikuli Script to Standalone Python Script

 

Question #276722 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/276722

    Status: Open => Answered

RaiMan proposed the following answer:
- SikuliX scripts are written in Python language
- to run them you need a Jython interpreter (with version 1.1.0+ it is Jython 2.7, that is bundled with sikulix.jar (IDE))
- Jython and SikuliX in general need Java to run

hence a Python-exe-packer does not help, since the runtime environment
is Python and not Java.

A comparable packer in the Java world is Launch4J, that principally does
what it should.

My trials until now did not succeed with what you want to do: parts of
the Jython interpreter package cannot be loaded from the jar, that is
packed into the exe. It has to be exported at runtime by a Sikuli
feature, that I did not implement until now.

An alternative to exe-packing is the packaging into a jar, which is simply possible in various ways with SikuliX.
Please scan the docs about that:

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