sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #37054
Re: [Question #287256]: importing self-built java package into a .sikuli project
Question #287256 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/287256
RaiMan proposed the following answer:
@Karl
thanks for pointing at that easy solution (... needs version 1.1.0+ though)
... and the docs are important of course, to understand it ;-)
- a little proof of concept:
# Java java file (TestImport.java)
public class TestImport {
public static void main(String[] args) {
System.out.println("Hello from TestImport");
}
}
compile it and put the resulting TestImport.class into the mentioned Sikulix folder:
%APPDATA%\Sikulix\Lib\site-packages
# use it in a script:
import TestImport
TestImport().main([])
prints
Hello from TestImport
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.