pythonewbie > > Because the solution using distutils.sysconfig.get_python_lib() is > very smart !
Depending on your goal. You said """ My goal is to verify if an/several extension(s) are installed and to automatically install the missing ones on Linux or Win32. """ This goal can't be reached with only the site-packages - because I can install packages somewhere else (matter of factly, this happens on debian for example, they've split the install-dirs and created a bunch of dirs under /usr/share) So having a method that gives you the installation root doesn't help much here. Diez -- http://mail.python.org/mailman/listinfo/python-list