← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #677361]: How do i import python modules into sikuliX script ?

 

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

RaiMan proposed the following answer:
--- print "hello world" and system.out.println("hello world")
are principally the same (though there might be String encoding challenges ;-)

... but every used Java class must be imported before usage.

my preferred technique:
import java.lang.system.out as JSysOut #once per script
JSysOut.println(...)
JSysOut.println(...)
JSysOut.println(...)
JSysOut.println(...)
...

but this also
import java
java.lang.System.out.println("hello world") 

more can be found in the net.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.