← Back to team overview

sikuli-driver team mailing list archive

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

panadol007 posted a new comment:
None of above solutions help in my MAC. 
But the simple solution is to give the config file a full path, then it works:

#inside application: 
import ConfigParser

config = ConfigParser.ConfigParser()
config.read('/Users/markkhor/Desktop/Development/Sikuli/Testing/SimpleTest/config.ini')
username1 = config.get('user1','user')

print username1


#inside config.ini
[user1]
user = Guido Van Rossum
ip = 192.168.0.1
machineName= Guido's Machine
system = Ubuntu

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