On 21 jan, 10:34, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > 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
To John Machin, >>> sys.path ['', '/usr/lib/python25.zip', '/usr/lib/python2.5', '/usr/lib/ python2.5/plat-linux2', '/usr/lib/python2.5/lib-tk', '/usr/lib/ python2.5/lib-dynload', '/usr/local/lib/python2.5/site-packages', '/ usr/lib/python2.5/site-packages', '/usr/lib/python2.5/site-packages/ Numeric', '/usr/lib/python2.5/site-packages/gst-0.10', '/var/lib/ python-support/python2.5', '/usr/lib/python2.5/site-packages/gtk-2.0', '/var/lib/python-support/python2.5/gtk-2.0', '/usr/lib/python2.5/site- packages/wx-2.8-gtk2-unicode'] -- http://mail.python.org/mailman/listinfo/python-list