Try python2 and python for the install script

This commit is contained in:
Armin Ronacher 2015-12-27 00:36:08 +01:00
parent 3355c05704
commit eaeaec76ad
1 changed files with 6 additions and 2 deletions

View File

@ -11,12 +11,16 @@
I() {
set -u
if ! hash python 2> /dev/null; then
if hash python2 2> /dev/null; then
PY=python2
elif hash python 2> /dev/null; then
PY=python
else
echo "Error: To use this script you need to have Python installed"
exit 1
fi
python - <<'EOF'
$PY - <<'EOF'
if 1:
import os