title: Python ConfigParser cannot search .ini file correctly (Ubuntu 14, Python 3.4)
body: <p>Problem:
  The code compiles fine but when ever i call the read_db_config function i get "Exception: mysql not found in the mysql_config.ini file"</p>
  
  <p>The file is in the same directory but the main script runs two directories up using </p>
  
  <pre><code>import sys 
  from Config.MySQL.python_mysql_dbconfig import read_db_config
  </code></pre>
  
  <p>I am new to python and have searched everywhere but i cannot seem to pinpoint my issue</p>
  
  <p>Code:</p>
  
  <pre><code>from ConfigParser import ConfigParser
  
  def read_db_config(filename='mysql_config.ini', section='mysql'):
  
      # create parser and read ini configuration file
      parser = ConfigParser()
      parser.read(filename)
  
      # get section, default to mysql
      db = {}
      if parser.has_section(section):
          items = parser.items(section)
          for item in items:
              db[item[0]] = item[1]
      else:
          raise Exception('{0} not found in the {1}  file'.format(section, filename))
  
      return db
  </code></pre>
  
  <p>mysql_config.ini:</p>
  
  <pre><code>[mysql]
  database = testdba
  user = root
  password = test
  unix_socket = /opt/lampp/var/mysql/mysql.sock
  </code></pre>