Suppress stderr for 'where python'/'where python3' in xb.bat.

This commit is contained in:
gibbed 2019-08-18 09:48:32 -05:00 committed by Rick Gibbed
parent 75a78c45c4
commit f9e037f84b
1 changed files with 2 additions and 2 deletions

4
xb.bat
View File

@ -39,11 +39,11 @@ SET CANDIDATE_PATHS[2]=C:\python35\python.exe
SET CANDIDATE_PATHS[3]=C:\python34\python.exe
SET OUTPUT_INDEX=4
FOR /F "usebackq" %%l IN (`where python3`) DO (
FOR /F "usebackq" %%l IN (`2^>NUL where python3`) DO (
SET CANDIDATE_PATHS[!OUTPUT_INDEX!]=%%l
SET /A OUTPUT_INDEX+=1
)
FOR /F "usebackq" %%l IN (`where python`) DO (
FOR /F "usebackq" %%l IN (`2^>NUL where python`) DO (
SET CANDIDATE_PATHS[!OUTPUT_INDEX!]=%%l
SET /A OUTPUT_INDEX+=1
)