pth files - can they prepend to sys.path?

Peter Hansen peter at engcorp.com
Fri Dec 28 11:52:15 EST 2001


Skip Montanaro wrote:
> 
> Is it possible to force a directory mentioned in a .pth file to be inserted
> at the beginning of sys.path instead of appended to the end?

I guess you could change site.py, but the standard on one my
Windows Python 2.2 installation does appends only.

-- 
----------------------
Peter Hansen, P.Eng.
peter at engcorp.com



More information about the Python-list mailing list