On Wed, Nov 11, 2009 at 09:46:25AM -0800, Tom Epperly wrote: > > I thought distutils.sysconfig.get_python_lib() might be helpful, but it > returns "/usr/lib/python2.6/site-packages" even on the system where > "/usr/lib64/python2.6/site-packages" is the right answer. > You're on the right track here. You just need one more piece of information:
distutils.sysconfig.get_python_lib() will return the path where pure python extensions get installed. distutils.sysconfig.get_python_lib(1) will return the path where compiled extensions get installed. -Toshio
pgpZS2K5lSHwt.pgp
Description: PGP signature
_______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig