Given a Python compiled as a shared library, how do I determine the name and path of this library?
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).