FS#1240 - python: adding /opt/gnome/lib/python2.3 to PYTHONPATH

Attached to Project: Arch Linux
Opened by Link Dupont (link) - Monday, 09 August 2004, 04:06 GMT
Last edited by Judd Vinet (judd) - Monday, 09 August 2004, 16:57 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To arjan timmerman (blaasvis)
Architecture not specified
Severity Low
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

I suggest adding /opt/gnome/lib/python2.3 to the environment variable PYTHONPATH. This will allow GNOME applications that are written in Python to work with the basic, prefix=/opt/gnome install, without a lot of mving afterwards. This could be added in the /etc/profile.d/gnome.sh.
http://www.python.org/doc/2.3.4/inst/search-path.html Down at the bottom (second to last paragraph).
This task depends upon

Closed by  arjan timmerman (blaasvis)
Sunday, 22 August 2004, 14:26 GMT
Reason for closing:  Fixed
Comment by Link Dupont (link) - Monday, 09 August 2004, 04:34 GMT
PYTHONPATH should be set to:
export PYTHONPATH=$PYTHONPATH:/usr/lib/python2.3/site-packages:$GNOMEDIR/lib/python2.3/site-packages
That works for me.
Comment by Judd Vinet (judd) - Monday, 09 August 2004, 16:58 GMT
Arjan, a good place for this would be Gnome's profile.d file, /etc/profile.d/gnome.sh

Comment by arjan timmerman (blaasvis) - Sunday, 22 August 2004, 14:26 GMT
ok the python.install will add the line to gnome.sh and remove it on removal ;)
fixed

Loading...