sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #12163
Re: [Question #204153]: How to provide user input to sikuli script from a file
Question #204153 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/204153
pyCoder posted a new comment:
refined.. your right RaiMan, it's depends on what op needs... if it's
like a hundered entries csv method might be better. i took it as a
config type. basically if you have thousands of entries use the csv
module. but it's achevable as shown below.
CSV http://www.jython.org/docs/library/csv.html
Configparser http://www.jython.org/docs/library/configparser.html
#inside application, configparser example
import ConfigParser
config = ConfigParser.ConfigParser()
config.read('config.ini')
username1 = config.get('user1','username')
username2 = config.get('user2','username')
#inside 'config.ini'
[user1]
user = Guido Van Rossum
ip = 192.168.0.1
machineName= Guido's Machine
system = Ubuntu
[user2]
user = Bob Marley
ip = 192.168.0.1
machineName= Bob's Machine
system = windows 7
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.