Re: The '.' at the head of the default sys.path
Mike McDonald (email@example.com)
Wed, 15 Jun 1994 17:40:50 GMT
In article <199406151539.AA18095@elvis.med.Virginia.EDU>, "Steven D. Majewski" <firstname.lastname@example.org> writes:
|> On Jun 15, 8:35, Mike Tibbs wrote:
|> > I second Ken's proposal.
|> > There have been times when I needed to completely replace the sys.path
|> > and it would have been nice to do it via PYTHONPATH.
|> > -- End of excerpt from Mike Tibbs <email@example.com>
|> I happen to usually want '.' at the head of my sys.path, but I don't
|> see that the default values make much difference one way or the other
|> (1) It's is easy to change them to what you want at build time.
|> (2) By definition, it is a site-specific value, and no code SHOULD
|> be broken by any value.
|> However: although having PYTHONPATH's value prepended to the
|> builtin-value is a convenience, it's clear that there are times
|> when what you WANT is to override the defaults completely.
|> ( especially for server scripts )
|> So I propose that:
|> be give two different interpretations. One replaces the
|> value of sys.path and the other prepends it's value to
How about a "special" directory name like SYS.PATH which substitutes in the
current sys.path? The you can say things like:
Mike McDonald Advanced Technology Dept.
Email: firstname.lastname@example.org M.S. 16-1912
Voice: (407) 727-5060 P.O. Box 37
Fax: (407) 729-3363 Melbourne, Florida 32902