Skip to content

Commit

Permalink
Merge pull request #307 from facebook/threeByDefault
Browse files Browse the repository at this point in the history
Switch to python3 by default: Issue #305
  • Loading branch information
pcottle authored Aug 30, 2019
2 parents d3d1109 + 0868d44 commit 2ad9647
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2ad9647

Please sign in to comment.