From 0868d441f9c299d0734f9094fabafd2f6f7b5ec9 Mon Sep 17 00:00:00 2001 From: Peter Cottle Date: Fri, 30 Aug 2019 08:50:01 -0700 Subject: [PATCH] Switch to python3 by default: Issue #305 --- fpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fpp b/fpp index 7fa31c42..cc9dd45d 100755 --- a/fpp +++ b/fpp @@ -17,7 +17,7 @@ while [ -h "$SOURCE" ]; do done BASEDIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" -PYTHONCMD="python" +PYTHONCMD="python3" NONINTERACTIVE=false # Setup according to XDG/Freedesktop standards as specified by @@ -73,8 +73,8 @@ for opt in "$@"; do VERSION="$($PYTHONCMD "$BASEDIR/src/version.py")" echo "fpp version $VERSION" exit 0 - elif [ "$opt" == "--python3" ]; then - PYTHONCMD="python3" + elif [ "$opt" == "--python2" ]; then + PYTHONCMD="python2" elif [ "$opt" == "--help" -o "$opt" == "-h" ]; then $PYTHONCMD "$BASEDIR/src/printHelp.py" exit 0