From 42dc89ad32f40f4cff55b9650647aae5d2d4724a Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Mon, 27 Oct 2025 11:39:01 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20Use=20'which'=20in=20Makefile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #28141 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f3e4d80b36..68c522e5b6 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ UNIT_TEST_CONFIG ?= default # Find a Python 3 interpreter ifeq ($(OS),Windows_NT) # Windows: use `where` – fall back through the three common names - PYTHON := $(shell where python 2>nul || where python3 2>nul || where py 2>nul) + PYTHON := $(shell which python 2>nul || which python3 2>nul || which py 2>nul) # Windows: Use cmd tools to find pins files PINS_RAW := $(shell cmd //c "dir /s /b Marlin\src\pins\*.h 2>nul | findstr /r ".*Marlin\\\\src\\\\pins\\\\.*\\\\pins_.*\.h"") PINS := $(subst \,/,$(PINS_RAW))