[xb] Use WINDIR env var
This commit is contained in:
parent
a45a9d8704
commit
0ee39400fe
2
xb.bat
2
xb.bat
|
@ -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 (
|
||||
|
|
Loading…
Reference in New Issue