Fix: broken make update on new macOS build

Properly check for the existence of the Python binary in precompiled libs.
This commit is contained in:
Brecht Van Lommel 2024-01-16 14:18:57 +01:00
parent aefa1cd723
commit 0e68898a37
1 changed files with 1 additions and 1 deletions

View File

@ -230,7 +230,7 @@ endif
ifndef PYTHON
# If not overriden, first try using Python from LIBDIR.
PYTHON:=$(LIBDIR)/python/bin/python$(PY_LIB_VERSION)
ifeq (, $(PYTHON))
ifeq (, $(wildcard $(PYTHON)))
# If not available, use system python3 or python command.
PYTHON:=python3
ifeq (, $(shell command -v $(PYTHON)))