on python 2.4

ariza ariza at
Thu Jan 13 04:43:19 EST 2005

greetings. it seems that the attribute, of the site module,
has vanished in python 2.4. up until python 2.3, seemed (to
me at least) a convenient way to get the complete path to the python
library on any platform:

>>> import site

i do not see any information about this change save that in the new
documentation it says:

This module is automatically imported during initialization. The
automatic import can be suppressed using the interpreter's -S option.

Importing this module will append site-specific paths to the module
search path.

can anyone propose a similarly effective and cross-platform solution
for easily discovering the the library path on any python installation?

More information about the Python-list mailing list