Skip to content

Commit 1b9ca8b

Browse files
committed
Fixed python exe on windows.
1 parent e749a1c commit 1b9ca8b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

etc/build_dir.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,11 @@ if [[ ! $RUNME || ${BUILD_PYTHON} == OFF || ${BUILD_PYTHON} == 0 ]]; then
139139
#
140140
export PYTHONPATH="${PYTHON_LIBDIR}:${PYTHON_SITEDIR}:${PYTHONPATH}"
141141
else
142-
export PYTHONEXE="$PWD/${BUILD_DIR}/install/bin/python${PYTHON_VERSION}"
142+
if [[ $KERNEL == *Msys* ]]; then
143+
export PYTHONEXE="$PWD/${BUILD_DIR}/install/bin/python.exe"
144+
else
145+
export PYTHONEXE="$PWD/${BUILD_DIR}/install/bin/python${PYTHON_VERSION}"
146+
fi
143147
#
144148
# Set PYTHONPATH
145149
#

0 commit comments

Comments
 (0)