I am debugging a python program based on pygtk and I want to make sure that the program is using the right shared library.
pygtk
is a GTK+
wrapper for python. I have already compiled GTK+
using jhbuild
tool and I want to make sure that the python script which I am debugging uses the compiled library from jhbuild
.
One would import gtk
and pygtk
like this:
import gtk
import pygtk
print(gtk.__file__)
# /usr/lib/python2.7/site-packages/gtk-2.0/gtk/__init__.pyc
print(pygtk.__file__)
# /usr/lib/python2.7/site-packages/pygtk.pyc
For example I can show a window using gtk:
w = gtk.Window()
w.show()
This will draw a window on the screen using gtk. However I don't know which shared object is be used. I have many versions installed and I need to find the culprit.