REPOST: Re: pth files - can they prepend to sys.path?

Michael Hudson mwh at python.net
Fri Dec 28 11:00:21 EST 2001


"Skip Montanaro" <skip at pobox.com> writes:

> 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?

You realise the handling of .pth files is done in site.py?

The answer seems to be no, though presumably there's nothing stoppoing
you supporting .pthplus files in a sitecustomize.py.

Cheers,
M.

========= WAS CANCELLED BY =======:
Path: news.sol.net!spool0-milwwi.newsops.execpc.com!newsfeeds.sol.net!news-out.visi.com!hermes.visi.com!newsxfer.interpacket.net!news-xfer.nuri.net!feeder.kornet.net!news1.kornet.net!ua4canc3ll3r
From: Michael Hudson <mwh at python.net>
Newsgroups: comp.lang.python
Subject: cmsg cancel <lky9jnwd0r.fsf at elios.maths.bris.ac.uk>
Control: cancel <lky9jnwd0r.fsf at elios.maths.bris.ac.uk>
Date: Mon, 31 Dec 2001 02:16:07 GMT
Organization: A poorly-installed InterNetNews site
Lines: 2
Message-ID: <cancel.lky9jnwd0r.fsf at elios.maths.bris.ac.uk>
NNTP-Posting-Host: 211.57.49.2
X-Trace: news2.kornet.net 1009775311 27193 211.57.49.2 (31 Dec 2001 05:08:31 GMT)
X-Complaints-To: usenet at news2.kornet.net
NNTP-Posting-Date: Mon, 31 Dec 2001 05:08:31 +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