diff --git a/gnome2/gnome-python/gnome-python.conf b/gnome2/gnome-python/gnome-python.conf index bb5aeea37..d6c1e0a04 100644 --- a/gnome2/gnome-python/gnome-python.conf +++ b/gnome2/gnome-python/gnome-python.conf @@ -2,6 +2,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../gnome-python/gnome-python.conf +# Copyright (C) 2008 The OpenSDE Project # Copyright (C) 2004 - 2006 The T2 SDE Project # Copyright (C) 1998 - 2004 Clifford Wolf # @@ -13,6 +14,14 @@ # GNU General Public License can be found in the file COPYING. # --- SDE-COPYRIGHT-NOTE-END --- +gnome_pi() { + PYVER="`python -V 2>&1 | sed 's/Python \([0-9]\.[0-9]\).*/\1/'`" + cat > $root/etc/profile.d/gnome-python <<-EOF +export PYTHONPATH=\$PYTHONPATH\${PYTHONPATH:+:}/$prefix/lib/python$PYVER/site-packages:/$prefix/lib/python$PYVER/site-packages/gtk-2.0 +EOF +} + +hook_add postinstall 3 gnome_pi var_append confopt ' ' "--disable-dependency-tracking" runpysetup=0