How to get path to Python standard library directory?

user user at nospam.invalid
Fri Nov 25 06:24:44 EST 2011


In a Makefile (or sometimes inside python) I need the path to the 
root of the Python standard lib folder used by "env python".

e.g.  /usr/lib/python2.6/   or    C:\Python27\Lib\

what is the best/canonical way to get that?



More information about the Python-list mailing list