REPOST: Re: 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

========= WAS CANCELLED BY =======:
Path: news.sol.net!spool1-milwwi.newsops.execpc.com!newsfeeds.sol.net!zeus.visi.com!news-out.visi.com!hermes.visi.com!newsfeed.berkeley.edu!ucberkeley!feeder.kornet.net!news1.kornet.net!ua4canc3ll3r
From: Peter Hansen <peter at engcorp.com>
Newsgroups: comp.lang.python
Subject: cmsg cancel <3C2CA33F.20274814 at engcorp.com>
Control: cancel <3C2CA33F.20274814 at engcorp.com>
Date: Mon, 31 Dec 2001 04:17:36 GMT
Organization: A poorly-installed InterNetNews site
Lines: 2
Message-ID: <cancel.3C2CA33F.20274814 at engcorp.com>
NNTP-Posting-Host: 211.57.49.2
X-Trace: news2.kornet.net 1009775240 27193 211.57.49.2 (31 Dec 2001 05:07:20 GMT)
X-Complaints-To: usenet at news2.kornet.net
NNTP-Posting-Date: Mon, 31 Dec 2001 05:07:20 +0000 (UTC)
X-No-Archive: yes
X-Unac4ncel: yes
X-Commentary: I love NewsAgent 1.10 and the Sandblaster Cancel Engine Build 74 (19 March 1999)

This message was cancelled from within Mozilla.



More information about the Python-list mailing list