File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,11 +8,11 @@ is_python3() {
88case " $OSTYPE " in
99 msys* |mingw* |cygwin* |win32* )
1010 echo " Running ${me} on Windows"
11- if command -v python3 > /dev/null 2>&1 && is_python3 python3; then
11+ if command -v python3 > /dev/null 2>&1 && is_python3 python3; then
1212 PYTHON_EXECUTABLE=(python3)
13- elif command -v py > /dev/null 2>&1 && py -3 -c ' import sys; sys.exit(0 if sys.version_info[0] == 3 else 1)' > /dev/null 2>&1 ; then
13+ elif command -v py > /dev/null 2>&1 && py -3 -c ' import sys; sys.exit(0 if sys.version_info[0] == 3 else 1)' > /dev/null 2>&1 ; then
1414 PYTHON_EXECUTABLE=(py -3)
15- elif command -v python > /dev/null 2>&1 && is_python3 python; then
15+ elif command -v python > /dev/null 2>&1 && is_python3 python; then
1616 PYTHON_EXECUTABLE=(python)
1717 else
1818 echo " Error: Python not found or not runnable"
@@ -21,9 +21,9 @@ case "$OSTYPE" in
2121 ;;
2222 * )
2323 echo " Running ${me} on linux / mac / unix"
24- if command -v python3 > /dev/null 2>&1 && is_python3 python3; then
24+ if command -v python3 > /dev/null 2>&1 && is_python3 python3; then
2525 PYTHON_EXECUTABLE=(python3)
26- elif command -v python > /dev/null 2>&1 && is_python3 python; then
26+ elif command -v python > /dev/null 2>&1 && is_python3 python; then
2727 PYTHON_EXECUTABLE=(python)
2828 else
2929 echo " Error: Python not found or not runnable"
Original file line number Diff line number Diff line change @@ -8,11 +8,11 @@ is_python3() {
88case " $OSTYPE " in
99 msys* |mingw* |cygwin* |win32* )
1010 echo " Running ${me} on Windows"
11- if command -v python3 > /dev/null 2>&1 && is_python3 python3; then
11+ if command -v python3 > /dev/null 2>&1 && is_python3 python3; then
1212 PYTHON_EXECUTABLE=(python3)
13- elif command -v py > /dev/null 2>&1 && py -3 -c ' import sys; sys.exit(0 if sys.version_info[0] == 3 else 1)' > /dev/null 2>&1 ; then
13+ elif command -v py > /dev/null 2>&1 && py -3 -c ' import sys; sys.exit(0 if sys.version_info[0] == 3 else 1)' > /dev/null 2>&1 ; then
1414 PYTHON_EXECUTABLE=(py -3)
15- elif command -v python > /dev/null 2>&1 && is_python3 python; then
15+ elif command -v python > /dev/null 2>&1 && is_python3 python; then
1616 PYTHON_EXECUTABLE=(python)
1717 else
1818 echo " Error: Python not found or not runnable"
@@ -21,9 +21,9 @@ case "$OSTYPE" in
2121 ;;
2222 * )
2323 echo " Running ${me} on linux / mac / unix"
24- if command -v python3 > /dev/null 2>&1 && is_python3 python3; then
24+ if command -v python3 > /dev/null 2>&1 && is_python3 python3; then
2525 PYTHON_EXECUTABLE=(python3)
26- elif command -v python > /dev/null 2>&1 && is_python3 python; then
26+ elif command -v python > /dev/null 2>&1 && is_python3 python; then
2727 PYTHON_EXECUTABLE=(python)
2828 else
2929 echo " Error: Python not found or not runnable"
Original file line number Diff line number Diff line change @@ -8,11 +8,11 @@ is_python3() {
88case " $OSTYPE " in
99 msys* |mingw* |cygwin* |win32* )
1010 echo " Running ${me} on Windows"
11- if command -v python3 > /dev/null 2>&1 && is_python3 python3; then
11+ if command -v python3 > /dev/null 2>&1 && is_python3 python3; then
1212 PYTHON_EXECUTABLE=(python3)
13- elif command -v py > /dev/null 2>&1 && py -3 -c ' import sys; sys.exit(0 if sys.version_info[0] == 3 else 1)' > /dev/null 2>&1 ; then
13+ elif command -v py > /dev/null 2>&1 && py -3 -c ' import sys; sys.exit(0 if sys.version_info[0] == 3 else 1)' > /dev/null 2>&1 ; then
1414 PYTHON_EXECUTABLE=(py -3)
15- elif command -v python > /dev/null 2>&1 && is_python3 python; then
15+ elif command -v python > /dev/null 2>&1 && is_python3 python; then
1616 PYTHON_EXECUTABLE=(python)
1717 else
1818 echo " Error: Python not found or not runnable"
@@ -21,9 +21,9 @@ case "$OSTYPE" in
2121 ;;
2222 * )
2323 echo " Running ${me} on linux / mac / unix"
24- if command -v python3 > /dev/null 2>&1 && is_python3 python3; then
24+ if command -v python3 > /dev/null 2>&1 && is_python3 python3; then
2525 PYTHON_EXECUTABLE=(python3)
26- elif command -v python > /dev/null 2>&1 && is_python3 python; then
26+ elif command -v python > /dev/null 2>&1 && is_python3 python; then
2727 PYTHON_EXECUTABLE=(python)
2828 else
2929 echo " Error: Python not found or not runnable"
You can’t perform that action at this time.
0 commit comments