← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #149866]: Import python modules in Sikuli jar

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
--1. Can you please elaborate why Python interface implementations are not useable?
The basic features used by these modules is written in C/C++ and the Python modules provide an interface API to that C-libraries. This is as such not available in the Jython environment. The package has to be ported to the according Java-C interface (JNI). If this is not done by anyone, the original Python module is not useable in Jython (without any modification/adaption only modules totally written in Python are useable directly)

--2. There is no need to pack your code into sikuli-script.jar (and it
is not recommended). Use the approach I mentioned above with my question
5.

--3. you ask: Will it require changes to be made in sikuli-ide.jar?
The Sikuli features are all in sikuli-script.jar. No need to do anything with sikuli-ide.jar, since it only contains the IDE-GUI.

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