Defining values across multiple modules in python
<p>I have several different modules <strong>all</strong> with something like:</p>

<pre><code>if not __name__ == '__main__':
    try:
        logger = logging.getLogger()
    except:
        from MainApp.lib import setLogging
        logger = setLogging.initLogging("install.log")
else:
    from MainApp.lib import setLogging
    logger = setLogging.initLogging("install.log")
    setLogging.enableDebugLogging()
</code></pre>

<p>Is it possible to, say, define all of this at the __init__.py level?  </p>
