[gobolinux-users] $pythonpath

MJ Ray mjr at phonecoop.coop
Thu Nov 29 22:50:07 NZDT 2007


"Nathan Middleton" <nathan.middleton at gmail.com> wrote: [...]
> pth files accomplish the same thing as setting the PYTHONPATH.
> Instead of talking about altering this or that and essentially
> creating more possible issues down the line; why not just move away
> from pth files and instead move those paths to an Environment for
> Python?  [...]

Been there, done that, broken the python.

pth files are loaded by python, so you can be fairly sure they'll work.

PYTHONPATH is loaded by the shell and anything can wipe or alter it
before python loads (environment cleaning in sudo, for example).
Also, it won't work for people who use shells that don't read
Environment (like me!).  pth files are a more general solution.

Hope that explains,
-- 
MJ Ray http://mjr.towers.org.uk/email.html tel:+44-844-4437-237 -
Webmaster-developer, statistician, sysadmin, online shop builder,
consumer and workers co-operative member http://www.ttllp.co.uk/ -
Writing on koha, debian, sat TV, Kewstoke http://mjr.towers.org.uk/


More information about the gobolinux-users mailing list