From ff0a9418672fbec935d9b58f81ad9ea719114177 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sun, 1 Mar 2026 18:07:44 +0000 Subject: Python path detection in Windows --- build.bat | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.bat b/build.bat index b082e03..9f9f5f1 100644 --- a/build.bat +++ b/build.bat @@ -38,7 +38,9 @@ SET STACKSIZE=-Wl,-stack:16777216 SET LFLAGS=%STACKSIZE% :: Python libraries - change to match your local installation -SET PYPATH=%userprofile%\AppData\Local\Programs\Python\Python313 +for /f "delims=" %%i in ('python -c "import sys; print(sys.base_prefix)"') do set PYPATH=%%i +::SET PYPATH=%userprofile%\AppData\Local\Programs\Python\Python313 + SET PYINCLUDE=%PYPATH%\include SET PYLIBS=%PYPATH%\libs -- cgit v1.3