← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #260891]: Execute Jython environment preconfigured with classpath reference to Sikuli to then run any Jython/Python script?

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
Why should that be different for Sikuli than with any other library you
use (e.g. Selenium) in pure Jython environments.

With version 1.0.1+ (much clearer though with 1.1.0+) you are supposed
to use the library jar (sikulixapi.jar for 1.1.0) together with a helper
import and you are done (see https://github.com/RaiMan/SikuliX-2014/wiki
/Usage-in-Java-programming). To this you also have link from the
relevant paragraph on QuickStart@homepage.

When using pure Jython scripts, you have to tell Sikuli anyways where
you have your images
(http://sikulix-2014.readthedocs.org/en/latest/scripting.html#image-
search-path-where-sikulix-looks-for-image-files), so the added value of
a somescript.sikuli folder and running it with sikulix.jar is "only",
that Sikuli supposes, that the images can be found in this folder too
(bundlePath).

So besides slightly improving the features brought by 
import org.sikuli.basics.SikulixForJython

I do not see any needed enhancements, but I am of course open to further
discuss any suggestions.

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