Accessing module level variables, from within a function in the module
<p>Well I guess I'll start off by saying that I don't even know if it is possible, however I feel it is and have failed to find anything on it.
I may be missing something blatantly obvious however I'd like to be able to do something like this:</p>

<pre><code>#mymodule
var = None

def load():
    var = something()
</code></pre>

<p>Other module(s):</p>

<pre><code>#secondmodule
import mymodule
mymodule.load()

#thirdmodule
from mymodule import var
print var #Shouldn't be None
</code></pre>

<p>But I don't know how to reference a modules variable from a function defined in the module.</p>

<p>Is this possible? Or am I going to need to put a global declaration in every place I wan't to use this.
Or am I going at this completely wrong?</p>

<p>Any help is appreciated,
Thanks.</p>
