From 5ba24e758e1c4142fd15e0e1cb8111135b406984 Mon Sep 17 00:00:00 2001 From: flyingcat <1004815462@qq.com> Date: Sun, 12 Apr 2020 22:04:24 +0800 Subject: [PATCH] perfer python3 to compile `which python` may direct to python2. make `which python3` ahead of `which python` may be better. --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 66b66ba54ed..e43908e39da 100755 --- a/configure +++ b/configure @@ -4,7 +4,7 @@ set -e set -o pipefail if [ -z "$PYTHON_BIN_PATH" ]; then - PYTHON_BIN_PATH=$(which python || which python3 || true) + PYTHON_BIN_PATH=$(which python3 || which python || true) fi # Set all env variables