How to print python module hierarchy?
<p>I have a file which is dynamically loaded. Because of the dynamic loading, I have no idea what its module path is, and all of my best guesses (per the filesystem structure) have failed so far.</p>

<ol>
<li>How do I inspect the full module path from within the running file?</li>
<li>How do I walk the hierarchy programmatically?</li>
</ol>

<p>(Python 2.6)</p>
