Add local_install / local_run tools

This commit is contained in:
Laurent Bachelier 2013-03-25 02:48:52 +01:00 committed by Florent
commit 64119bc03f
5 changed files with 137 additions and 28 deletions

10
tools/local_install.sh Executable file
View file

@ -0,0 +1,10 @@
#!/bin/sh
set -e
if [ -z "${PYTHON}" ]; then
which python >/dev/null 2>&1 && PYTHON=$(which python)
which python2 >/dev/null 2>&1 && PYTHON=$(which python2)
which python2.7 >/dev/null 2>&1 && PYTHON=$(which python2.7)
fi
exec "${PYTHON}" "$(dirname $0)/local_install.py" "$@"