title: ConfigParser instance has no attribute '[extension]'
body: <p>I am learning python and I am trying to do a simple task of reading information from a config file. </p>
  
  <p>So using the <a href="https://docs.python.org/2/library/configparser.html#examples" rel="nofollow noreferrer">Python Doc</a> and this <a href="https://stackoverflow.com/questions/16407329/python-configparser-attributeerror-configparser-instance-has-no-attribute">similar problem</a> as a reference I created two files.</p>
  
  <p>This is my config file <code>config.ini</code> (also tried <code>config.cfg</code>)</p>
  
  <pre><code>[DEFAULT]
  OutDir = path_to_file/
  
  [AUTH]
  TestInt = 100
  TestStr = blue
  TestParse = blua
  </code></pre>
  
  <p>and this is my python file <code>test.py</code></p>
  
  <pre><code>import ConfigParser
  
  from ConfigParser import *
  config = ConfigParser()
  
  config.read(config.cfg)
  
  for name in config.options('AUTH'):
      print name
  
  out = config.get('DEFAULT', 'OutDir')
  print 'Output directory is ' + out
  </code></pre>
  
  <p>however when running the command <code>python test.py</code> I am erroring out and receiving this error</p>
  
  <pre><code>Traceback (most recent call last):
    File "test.py", line 7, in &lt;module&gt;
      config.read(config.cfg)
  AttributeError: ConfigParser instance has no attribute 'cfg'
  </code></pre>
  
  <p>Note: I thought that meant it the extension couldn't be read so I created the <code>.ini</code> file and changed it in the code and I received the same error but it instead read <code>...has no attribute 'ini'</code></p>
  
  <p>I am not sure what I am doing wrong since I am doing the exact same as the python doc and the solution someone used to fix this similar issue.</p>