← Back to team overview

sikuli-driver team mailing list archive

[Question #271920]: Getting "ConfigParser.NoSectionError" while trying to read input from a file

 

New question #271920 on Sikuli:
https://answers.launchpad.net/sikuli/+question/271920

W.R.T the discussion on https://answers.launchpad.net/sikuli/+question/204153,
I tried to read input from a file. Getting "ConfigParser.NoSectionError" . Please help

#my code
import ConfigParser
config = ConfigParser.ConfigParser()
config.read('config.ini')
my_username = config.get('user1','username')
my_address = config.get('user1','address')

#inside config.ini
[user1]
username = ABC
address = 123

[user2]
username = XYZ
address = 345

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