Another absolute import problem
<p>I'm having problems with my own modules overriding built in Python ones (specifically the logging module).  Here's my project layout:</p>

<pre><code>run.py
package/
        __init__.py
        logging/
                __init__.py
        ...
</code></pre>

<p>run.py</p>

<pre><code>from package import main

main()
</code></pre>

<p>package/__init__.py</p>

<pre><code>from __future__ import absolute_import
import logging
import logging.config

def main():
    logging.config.fileConfig(...)
</code></pre>

<p>package/logging/__init__.py</p>

<pre><code>class Logging(object):
    pass
</code></pre>

<p>As it stands right now, the above code works.  As soon as I try to import the Logging class from package.logging like so:</p>

<pre><code>from __future__ import absolute_import

import logging
import logging.config
from package.logging import Logging

def main():
    logging.config.fileConfig(...)
</code></pre>

<p>I get an error:</p>

<pre><code>AttributeError: 'module' object has no attribute 'config'
</code></pre>

<p>I've read the <a href="http://docs.python.org/whatsnew/2.5.html#pep-328-absolute-and-relative-imports">PEP 328</a> release notes and found absolute imports to be rather straightforward.  Unfortunately I haven't been able to figure this one out.  </p>

<p>What am I missing here?</p>
