Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

executable file 25 lines (18 sloc) 0.572 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
#!/bin/bash

set -e

if [ "X$PYTHON" != "X" ]; then
    
    if [ ! -e $PYTHON ]; then
        echo "The path specified in the PYTHON environment variable does not exist:"
        echo " $PYTHON"
        exit 1
    fi
    
    echo "Using the Python executable provided in the PYTHON environment variable:"
    echo " $PYTHON"
    echo "Make sure to provide this environment to the installer as well."

else
    PYTHON=`which python`
fi

NH_REL="`dirname $0`/.."
NH=`cd $NH_REL; pwd`
PY_SCRIPT="$NH/scripts/lib/check_dependencies.py"

exec $PYTHON "$PY_SCRIPT" "$@"
Something went wrong with that request. Please try again.