title: Can't load relative config file using ConfigParser from sub-directory
body: <p>I have the following directory structure:</p>
  <pre><code>my_program/
         foo.py
         __init__.py # empty
         conf/
            config.cfg
            __init__.py 
  </code></pre>
  <p>In foo.py I have this:</p>
  <pre><code>import sys 
  #sys.path.append('conf/')
  import ConfigParser
  
  config = ConfigParser.ConfigParser()
  config.read( 'conf/config.cfg' )
  </code></pre>
  <p>In <code>conf/__init__.py</code> I have</p>
  <pre><code>__all__ = [&quot;config.cfg&quot;]
  </code></pre>
  <p>I get this error in <code>foo.py</code> that I can fix by giving the full path but not when I just put <code>conf/config.cfg</code> but I want the relative path to work:</p>
  <pre><code>ConfigParser.NoSectionError
  </code></pre>
  <p>which actually means that the file can't be loaded (so it can't read the section).</p>
  <p>I've tried commenting/un-commenting <code>sys.path.append('conf/')</code> in <code>foo.py</code> but it doesn't do anything.</p>
  <p>Any ideas?</p>