Can I import from a module based on raw_input, in Python 2.7?
<p>In Python 2.7 is it possible to take user input and use this to determine which module gets loaded?</p>

<p>I tried something like:</p>

<pre><code>userModule = raw_input("Which module to import? ")
from userModule import *
</code></pre>

<p>where there is no preexisting module called userModule...</p>

<p>Currently this returns: <strong>ImportError: No module named userModule</strong></p>
