More py check fixes

This commit is contained in:
CorpNewt 2019-06-07 10:37:41 -05:00 committed by GitHub
parent c4b9693b82
commit 894503584d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,7 +54,11 @@ set "python="
FOR /F "tokens=* USEBACKQ" %%F IN (`python -V 2^>^&1`) DO ( FOR /F "tokens=* USEBACKQ" %%F IN (`python -V 2^>^&1`) DO (
set "t=%%F" set "t=%%F"
if /i "!t:~0,6!" == "python" ( if /i "!t:~0,6!" == "python" (
set "python=%%F" REM Might have python installed - let's check for the store message
if /i "!t:was not found=!" == "!t!" (
REM There was no change - we found it.
set "python=%%F"
)
) )
) )