ajack 2004/06/16 11:13:55
Modified: . Tag: CleanUp gumpy.sh
Log:
Try to detect/use 'python2.3' (e.g in /usr/bin) before 'python'.
Revision Changes Path
No revision
No revision
1.34.4.1 +9 -1 gump/gumpy.sh
Index: gumpy.sh
===================================================================
RCS file: /home/cvs/gump/gumpy.sh,v
retrieving revision 1.34
retrieving revision 1.34.4.1
diff -u -r1.34 -r1.34.4.1
--- gumpy.sh 5 Apr 2004 19:03:35 -0000 1.34
+++ gumpy.sh 16 Jun 2004 18:13:55 -0000 1.34.4.1
@@ -33,11 +33,19 @@
. $HOST_LOCAL_ENV
fi
+export GUMP_PYTHON="`which python2.3`"
+if [ "" == "$GUMP_PYTHON" ] ; then
+ export GUMP_PYTHON="`which python`"
+ if [ "" == "$GUMP_PYTHON" ] ; then
+ echo "No Python (python2.3 nor python) found in path."
+ exit 1
+ fi
+fi
#
# Perform the run (passing on any arguments)
#
-python gumpy.py $*
+GUMP_PYTHON gumpy.py $*
#
# Ensure nothing we started (directly) is left running after we end...
@@ -48,6 +56,6 @@
fi
# $Log$
-# Revision 1.34 2004/04/05 19:03:35 ajack
-# Gut gumpy.sh and gumpy.bat and call gumpy.py (once env set).
+# Revision 1.34.4.1 2004/06/16 18:13:55 ajack
+# Try to detect/use 'python2.3' (e.g in /usr/bin) before 'python'.
#
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]