[Python-Dev] .pth files in current or script directory
Guido van Rossum
guido at python.org
Sun May 16 23:23:39 EDT 2004
> > Can't they manipulate sys.path *inside* the code in question? That's
> > invariably the solution I end up using -- I never play with
> > PYTHONPATH any more.
>
> I do this too, but I always feel that I shouldn't have to, especially
> when I'm not using `sys` for anything else. It also messes up my desire
> to keep all the imports together - the `sys` magic needs to go first.
Yet, it beats depending on environment variables, so I always end up
doing it this way.
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev
mailing list