* gramps.sh.in: Don't override an existing PYTHONPATH environment
variable svn: r1831
This commit is contained in:
parent
3f96f59ddc
commit
539131c743
@ -23,26 +23,13 @@
|
|||||||
prefix=@prefix@
|
prefix=@prefix@
|
||||||
|
|
||||||
export GRAMPSDIR=@datadir@/@PACKAGE@
|
export GRAMPSDIR=@datadir@/@PACKAGE@
|
||||||
export PYTHONPATH=$GRAMPSDIR
|
|
||||||
export GRAMPSI18N=@prefix@/share/locale
|
export GRAMPSI18N=@prefix@/share/locale
|
||||||
|
|
||||||
preload=""
|
if [ "$PYTHONPATH" == "" ]
|
||||||
|
then
|
||||||
#
|
export PYTHONPATH=$GRAMPSDIR
|
||||||
# Mandrake has a tendency to build dynamic libraries without the proper
|
else
|
||||||
# dependencies in them. This causes havoc with the python gtk libraries.
|
export PYTHONPATH=$GRAMPSDIR:$PYTHONPATH
|
||||||
# Preload the know problem libraries so that gramps does not fail under
|
|
||||||
# Mandrake
|
|
||||||
#
|
|
||||||
for l in /usr/X11R6/lib/libX11.so
|
|
||||||
do
|
|
||||||
if [ -f $l ]; then
|
|
||||||
preload="$preload $l"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ "$preload" != "" ]; then
|
|
||||||
export LD_PRELOAD="$preload"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec @PYTHON@ $GRAMPSDIR/gramps.py $*
|
exec @PYTHON@ $GRAMPSDIR/gramps.py $*
|
||||||
|
Loading…
Reference in New Issue
Block a user