← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #166071]: I want Sikuli to load some configuration such as variables values and other data from a configuration file?

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
try module ConfigParser (hoping it is available with Jython 2.5.1, that comes with current Sikuli -- I am already using 2.5.2)
usage: http://www.jython.org/docs/library/configparser.html

if it is not available try module csv.

If not possible, you have to use file.read/write and implement your own parsing
http://www.jython.org/jythonbook/en/1.0/InputOutput.html#

JSON support is also available, but a bit more complicated to get it work:
http://opensource.xhaus.com/projects/show/jyson

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.