From 894503584da1dfd807f37f87bf5392bccbfdc9e1 Mon Sep 17 00:00:00 2001 From: CorpNewt Date: Fri, 7 Jun 2019 10:37:41 -0500 Subject: [PATCH] More py check fixes --- MakeInstall.bat | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/MakeInstall.bat b/MakeInstall.bat index 8f0be21..7e080e4 100644 --- a/MakeInstall.bat +++ b/MakeInstall.bat @@ -54,7 +54,11 @@ set "python=" FOR /F "tokens=* USEBACKQ" %%F IN (`python -V 2^>^&1`) DO ( set "t=%%F" 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" + ) ) )