Skip to content
Snippets Groups Projects
Commit c8863828 authored by sheaf's avatar sheaf Committed by Marge Bot
Browse files

Configure: canonicalise PythonCmd on Windows

This change makes PythonCmd resolve to a canonical absolute path on
Windows, which prevents HLS getting confused (now that we have a
build-time dependency on python).

fixes #23652
parent 54bca324
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,11 @@
AC_DEFUN([FIND_PYTHON],[
dnl Prefer the mingw64 distribution on Windows due to #17483.
AC_PATH_PROG([PYTHON], [python3], [], [/mingw64/bin $PATH])
PythonCmd="$PYTHON"
if test "$HostOS" = "mingw32"
then
PythonCmd=$(cygpath -m "$PYTHON")
else
PythonCmd="$PYTHON"
fi
AC_SUBST([PythonCmd])
])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment