Import all classes in directory?
<p>I found <a href="http://stackoverflow.com/questions/1057431/loading-all-modules-in-a-folder-in-python">this</a>, but that's not quite what I want to do.</p>

<p>I want to import all the classes in all the files in a directory. Basically, I want to replace this:</p>

<pre><code>from A import *
from B import *
from C import *
</code></pre>

<p>With something dynamic, so that I don't have keep editing my <code>__init__.py</code> every time I add another file.</p>

<hr>

<p>The <code>glob</code> solution seems to be the equivalent of</p>

<pre><code>import A
import B
import C
</code></pre>

<p>which is not the same at all.</p>
