Search for python newest to oldest (#8244)

See https://github.com/Chia-Network/chia-blockchain/issues/8135
This commit is contained in:
Gene Hoffman 2021-08-31 10:22:27 -07:00 committed by GitHub
parent 461fe82587
commit f18b217e5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,7 +82,7 @@ fi
find_python() {
set +e
unset BEST_VERSION
for V in 37 3.7 38 3.8 39 3.9 3; do
for V in 39 3.9 38 3.8 37 3.7 3; do
if which python$V >/dev/null; then
if [ "$BEST_VERSION" = "" ]; then
BEST_VERSION=$V