[gobolinux-users] Python paths and gobo.pth

David Smith dsmith at algonet.se
Mon Nov 29 22:03:39 GMT 2004


I recently converted the python based spamfilter i use (Spambayes) into
a "proper" Gobo program with its libraries linked under /System/Links/
Libraries. After that, it stopped working when invoked from procmail.

The reason, it turned out, was that procmail resets the environment, so
PYTHONPATH from Python's Resources/Environment was not picked up, and
/S/L/L/python2.3/site-packages (with all the Spambayes files) was not
in the path.

The issue was solved by adding a file gobolinux.pth with the path
/S/L/L/python2.3/site-packages to site-packages under /Programs/
Python.

After searching around a bit I found this thread

http://thread.gmane.org/gmane.linux.distributions.gobo.general/1787

which has the same solution (i.e., using a file gobo.pth instead of
PYTHONPATH).

Is there a reason this was never done?

-- 
david


More information about the gobolinux-users mailing list