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"
if [ "$HOST_OS" = "Win" ]; then
# default python on MSYS
PYTHON="python2"
if ! _detect_cmd $PYTHON; then
PYTHON="python2" # try python2 on MSYS
fi
fi
_detect $PYTHON 1