Try python2 after detect python

This commit is contained in:
John Zhao 2018-06-12 10:43:09 +08:00
parent 3e42060ff1
commit 68e413e5e2

View File

@ -24,8 +24,9 @@ source "$BASE_DIR/common/host.sh"
PYTHON="python" PYTHON="python"
if [ "$HOST_OS" = "Win" ]; then if [ "$HOST_OS" = "Win" ]; then
# default python on MSYS if ! _detect_cmd $PYTHON; then
PYTHON="python2" PYTHON="python2" # try python2 on MSYS
fi
fi fi
_detect $PYTHON 1 _detect $PYTHON 1