config file with a dictionary using python
<p>So I am trying to use a dictionary inside a config file to store a report name to an API call.  So something like this:</p>

<pre><code>report = {'/report1': '/https://apicall...', '/report2': '/https://apicall...'}
</code></pre>

<p>I need to store multiple reports:apicalls to one config value.  I am using ConfigObj.  I have read there <a href="http://www.voidspace.org.uk/python/configobj.html#unrepr-mode" rel="nofollow">documentation</a>, <a href="http://www.voidspace.org.uk/python/articles/configobj.shtml" rel="nofollow">documentation</a> and it says I should be able to do it.  My code looks something like this:</p>

<pre><code>from configobj import ConfigObj
config = ConfigObj('settings.ini', unrepr=True)
for x in config['report']:
    # do something... 
    print x
</code></pre>

<p>However when it hits the config= it throws a raise error.  I am kinda lost here.  I even copied and pasted their example and same thing, "raise error".  I am using python27 and have the configobj library installed.</p>