Load Custom Jython Classes in Sikuli Interactive Mode

Asked by Derek Rushing

Is there a way I would be able to load a pre-established set of independent jython code I've created into the interactive mode for sikuli. It seems that having the JythonPath variable set doesn't allow me to call a line such as

from my_package.my_file import my_Class

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
Best RaiMan (raimund-hocke) said :
#1

Yes, Jython path does not matter for Sikuli, when you use it as it comes (it has its own Jython packed together in sikuli-script.jar))

you have use an approach as mentioned in: http://sikuli.org/docx/globals.html#importing-other-sikuli-scripts-reuse-code-and-images

or add the path to the java command line parameter -Dpython.path

Revision history for this message
Derek Rushing (derek-rushing-s) said :
#2

Thanks RaiMan, that solved my question.