sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #30601
Re: [Question #262180]: How i can import json module in my scripts
Question #262180 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/262180
Status: Open => Answered
RaiMan proposed the following answer:
What problems do you have with urllib2 in version 1.1.0?
Using stuff in provided in jars:
- take care, that the respective jar is on the Java class path at runtime (option -cp with the java.exe, look into the sikuli…bat)
- in Jython script just add imports naming the complete class path for the given stuff
example:
import org.sikuli.script.Region as SikReg # creates a shortcut
some_region = SikReg(0, 0, 100, 100)
You have to adapt this to your json jar case.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.