title: Dynamic module loading in python
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/301134/dynamic-module-import-in-python">Dynamic module import in Python</a>  </p>
  </blockquote>
  
  
  
  <p>I have a list of modules, like so:</p>
  
  <pre><code>modules = ['ModuleA', 'ModuleB', 'ModuleC']
  </code></pre>
  
  <p>Each .py for the module resides in a subdirectory that I've added to the include paths. What I'm looking for is a way to load the modules and build a list of references to said loaded modules.</p>