[Python-checkins] python/dist/src/Lib/plat-mac pimp.py,1.7,1.8

Thomas Heller theller@python.net
12 Feb 2003 17:28:54 +0100


jackjansen@users.sourceforge.net writes:
> Update of /cvsroot/python/python/dist/src/Lib/plat-mac
> In directory sc8-pr-cvs1:/tmp/cvs-serv29687
>> Modified Files:
> 	pimp.py 
> Log Message:
> - Better way to find site-packages

> ! for _p in sys.path:
> ! 	if _p[-13:] == 'site-packages':
> ! 		DEFAULT_INSTALLDIR=_p
> ! 		break
> ! else:
> ! 	DEFAULT_INSTALLDIR=sys.prefix # Have to put things somewhere

Doesn't distutils expose this directory via sysconfig.get_python_lib() ?
Thomas

AltStyle によって変換されたページ (->オリジナル) /