How to determine the path & name of the Python shared library?
<p>Given a Python compiled as a shared library, how do I determine the name and path of this library?</p>

<p>The output I'm looking for is like "/usr/local/lib/libpython2.7.so" or "/System/Library/Frameworks/Python.framework/Versions/2.6/Python" (for a framework build on OS X).</p>
