Skip to content

Commit 2ad9647

Browse files
authored
Merge pull request #307 from facebook/threeByDefault
Switch to python3 by default: Issue #305
2 parents d3d1109 + 0868d44 commit 2ad9647

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ while [ -h "$SOURCE" ]; do
1717
done
1818
BASEDIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
1919

20-
PYTHONCMD="python"
20+
PYTHONCMD="python3"
2121
NONINTERACTIVE=false
2222

2323
# Setup according to XDG/Freedesktop standards as specified by
@@ -73,8 +73,8 @@ for opt in "$@"; do
7373
VERSION="$($PYTHONCMD "$BASEDIR/src/version.py")"
7474
echo "fpp version $VERSION"
7575
exit 0
76-
elif [ "$opt" == "--python3" ]; then
77-
PYTHONCMD="python3"
76+
elif [ "$opt" == "--python2" ]; then
77+
PYTHONCMD="python2"
7878
elif [ "$opt" == "--help" -o "$opt" == "-h" ]; then
7979
$PYTHONCMD "$BASEDIR/src/printHelp.py"
8080
exit 0

0 commit comments

Comments
 (0)