discover path of python module
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/247770/retrieving-python-module-path">Retrieving python module path</a>  </p>
</blockquote>



<p>Suppose I have code in 3 python files. x.py, y.py, z.py.  </p>

<p>x calls y and y calls z.  In the code in z.py, I want to know what directory x.py is in.</p>

<p>Is there a function that will tell me this?</p>

<p>EDIT
forget z.py.  I just want y.py to print out the path of x.py.<br>
EDIT </p>

<p>Note that the system has 30 different files all named x.py located in different directories.</p>
