← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #286187]: Custom Wrapper Firing Twice

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
The inconsistency between the Python API layer and the Java API layer has historical reasons and cannot be fully recovered with version 1.1.x.
Version 2 will have both a compatibility mode (being backward compatible for the Python API) and a clean mode, where the API used will strictly be that of the Java layer.

So if you want to implement some generic layer/wrapper for whatever
reason, you have to rely only on the Java API, to not get in any
conflicts or fancy situations. Hence you MUST not import anything from
the Python API layer (not any: from sikuli.... import whatever!).

... and scripts using this wrapper cannot be run in the IDE (because
there internally automatically at run a from sikuli import * is issued).

To get an impression what you might need for such a wrapper, have a look
into sikuli.Sikuli.py

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