[TriZPUG] determining libraries for python programs

Joseph Tate dragonstrider at gmail.com
Sun Nov 21 06:32:37 CET 2010


The best way to see what your app uses is to strace it.  You can look
just for the "open" syscall.  If you drop to a debugging prompt, you
can inspect sys.modules to see what has been imported.

Joseph

On Sat, Nov 20, 2010 at 9:36 AM, Joseph Mack NA3T <jmack at wm7d.net> wrote:
> For a regular binary you can use ldd to determine the dynamic libraries.
> What do you do to determine the libraries used for a python program? I have
> a python program that uses tkInter, but when I do ldd on
> /usr/local/bin/python, libtk doesn't show up. My python program must ask for
> libtk. How do I check the libraries that the my python program calls?
>
> Thanks Joe
>
> --
> Joseph Mack NA3T EME(B,D), FM05lw North Carolina
> jmack (at) wm7d (dot) net - azimuthal equidistant map
> generator at http://www.wm7d.net/azproj.shtml
> Homepage http://www.austintek.com/ It's GNU/Linux!
> _______________________________________________
> TriZPUG mailing list
> TriZPUG at python.org
> http://mail.python.org/mailman/listinfo/trizpug
> http://trizpug.org is the Triangle Zope and Python Users Group
>



-- 
Joseph Tate
Personal e-mail: jtate AT dragonstrider DOT com
Web: http://www.dragonstrider.com


More information about the TriZPUG mailing list