Is there a python equivalent to the Unix `which` command?
<p>I'd like to know where the module I'm about to import is coming from.  Is there a <code>which</code> command in python?</p>

<p>Example:</p>

<pre><code>&gt;&gt;&gt; which module_name
/usr/lib/python2.6/site-packages/module_name.py
</code></pre>
