[xb] Use WINDIR env var

This commit is contained in:
Margen67 2025-03-23 12:20:48 -07:00
parent a45a9d8704
commit 0ee39400fe
1 changed files with 1 additions and 1 deletions

2
xb.bat
View File

@ -42,7 +42,7 @@ SET "CANDIDATE_PATHS[3]=C:\python311\python.exe"
SET "CANDIDATE_PATHS[4]=C:\python310\python.exe"
SET "CANDIDATE_PATHS[5]=C:\python39\python.exe"
SET "CANDIDATE_PATHS[6]=C:\python%PYTHON_MINIMUM_VERSION[0]%%PYTHON_MINIMUM_VERSION[1]%\python.exe"
SET "CANDIDATE_PATHS[7]=C:\Windows\py.exe"
SET "CANDIDATE_PATHS[7]=%WINDIR%\py.exe"
SET OUTPUT_INDEX=8
FOR /F "usebackq delims=" %%L IN (`2^>NUL where python3`) DO (