I'm having some trouble with ConfigParser. It once worked and now seems not to.
This is what the section of my code looks like that parses the config file:
from ConfigParser import SafeConfigParser
parser = SafeConfigParser()
parser.read('config.txt')
T1 = parser.get('config', 'THING1')
T2 = parser.get('config', 'THING2')
This is what the config file looks like:
[config]
THING1 = some_setting
THING2 = some_setting2
But I get this error when running the application:
2013-07-12 16:37:09,360 :Traceback (most recent call last):
2013-07-12 16:37:09,362 :ConfigParser.NoSectionError: No section: 'config'
Clearly the section "config" does exist. This same code works fine on my desktop and has worked in the past on PA. Any ideas?