#!/bin/sh # # Try to find a usable python # if [ "$GALAXY_PYTHON" != "" ]; then PYTHONS="$GALAXY_PYTHON" else PYTHONS="python python2.4 python2.5" fi found="" for python in $PYTHONS; do version=`$python -c 'import sys; print sys.version[:3]' 2>/dev/null` if [ $? -eq 0 ]; then case $version in 2.4|2.5) found="$python" break ;; esac fi done if [ "$found" != "" ]; then GALAXY_PYTHON="$found" else # user manually defined $GALAXY_PYTHON if [ "$GALAXY_PYTHON" != "" ]; then /bin/cat <