← Back to team overview

sikuli-driver team mailing list archive

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

 

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

This thought just recently occurred to me. Sikuli, the IDE at least?, already incorporates Jython, and comes with Jython interpreter shell that you can fire off that I believe lets you run Sikuli API commands.

But if one wants to run Jython/Python (not *.sikuli/*.skl) script files, they have to set up the classpath, Jython path references as well as pointing to the lib directory, etc. before they can successfully import and run some Sikuli commands in Jython script file (when such file is not part of a Sikuli script).

And the exact files & process changed a bit between old and recent versions of Sikuli I believe.

It sure would be nice to have a feature where you can use Sikuli JAR as "Jython" (with all the Sikuli referencing "predone" for you). As a replacement/alternative to standard Jython JAR/distribution. As such, starting up such a Jython environment (in this case, assumed to be not the interpreter shell but rather when you supply a Python/Jython script), any Jython script that imports any class/module from Sikuli package/namespace then should have no issues and can call the Sikuli API commands.

That would save people headache and hassle from having to much with path reference and stuff to Sikuli, especially when Jython is already built in.

Perhaps something to consider for future enhancement.

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