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
More information about the Python-list
mailing list