sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #30079
Re: [Question #260722]: Can .sikuli project be run from Java code?
Question #260722 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/260722
NoBugs! posted a new comment:
I think I found the relevant code in Sikuli source code:
http://bazaar.launchpad.net/~sikuli-driver/sikuli/sikuli.git/view/head:/sikuli-ide/src/main/java/org/sikuli/ide/SikuliIDE.java
protected void runPython(File f) throws Exception{
ScriptRunner srunner = new ScriptRunner(getPyArgs());
try{
String path = SikuliIDE.getInstance().getCurrentBundlePath();
srunner.addTempHeader("initSikuli()");
srunner.runPython(path, f);
srunner.close();
}
catch(Exception e){
srunner.close();
throw e;
}
}
So it looks like ScriptRunner is the class to use - unfortunately it's missing javadoc comments.
http://doc.sikuli.org/javadoc/
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.