autoconf: how to get python_libdir correctly?
Michael Hudson
mwh at python.net
Wed Dec 4 08:38:29 EST 2002
Gernot Hillier <ghillie at suse.de> writes:
> Can I rely on sys.path[1] containing the system wide module directory?
Maybe.
> Other ideas?
>>> from distutils import sysconfig
>>> sysconfig.get_config_var("LIBDEST")
'/usr/lib/python2.2'
is my best effort.
Cheers,
M.
--
CLiki pages can be edited by anybody at any time. Imagine the most
fearsomely comprehensive legal disclaimer you have ever seen, and
double it -- http://ww.telent.net/cliki/index
More information about the Python-list
mailing list