site.here on python 2.4
ariza at flexatone.com
Thu Jan 13 04:43:19 EST 2005
greetings. it seems that the attribute site.here, of the site module,
has vanished in python 2.4. up until python 2.3, site.here 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
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