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

Martin von Loewis loewis at informatik.hu-berlin.de
Fri Dec 28 18:15:59 EST 2001


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

> You are one sly dog, Martin... ;-)

I added the import facility to .pth files, so I should know how to use
it :-) Turns out I didn't ... Due to what I would consider a bug in
that facility, adding a line

import sys;sys.path.insert(0,"/tmp")

also has the desired affect, without requiring a helper module
(originally, the plan was that import lines only contain a single
import statement; that constraint is not enforced).

Regards,
Martin

========= WAS CANCELLED BY =======:
Path: news.sol.net!spool1-nwblwi.newsops.execpc.com!newsfeeds.sol.net!newspump.sol.net!nntp1.roc.gblx.net!nntp.gblx.net!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!enews.sgi.com!news-xfer.nuri.net!feeder.kornet.net!news1.kornet.net!ua4canc3ll3r
From: Martin von Loewis <loewis at informatik.hu-berlin.de>
Newsgroups: comp.lang.python
Subject: cmsg cancel <j4zo43aqc0.fsf at informatik.hu-berlin.de>
Control: cancel <j4zo43aqc0.fsf at informatik.hu-berlin.de>
Date: Mon, 31 Dec 2001 04:32:11 GMT
Organization: A poorly-installed InterNetNews site
Lines: 2
Message-ID: <cancel.j4zo43aqc0.fsf at informatik.hu-berlin.de>
NNTP-Posting-Host: 211.57.49.2
X-Trace: news2.kornet.net 1009774992 27193 211.57.49.2 (31 Dec 2001 05:03:12 GMT)
X-Complaints-To: usenet at news2.kornet.net
NNTP-Posting-Date: Mon, 31 Dec 2001 05:03:12 +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