From ea17b52b33bf2b7f4d31c7e58b5889e3ec2e347d Mon Sep 17 00:00:00 2001 From: CorpNewt <12772521+corpnewt@users.noreply.github.com> Date: Fri, 1 Nov 2019 21:39:59 -0500 Subject: [PATCH] Update gibMacOS.bat --- gibMacOS.bat | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gibMacOS.bat b/gibMacOS.bat index d3b9819..4009cb0 100644 --- a/gibMacOS.bat +++ b/gibMacOS.bat @@ -52,7 +52,9 @@ goto :EOF :checkpy call :updatepath -for /f "tokens=*" %%x in ('where python') do ( call :checkpyversion "%%x" "py2v" "py2path" "py3v" "py3path" ) +REM Get the system32 (or equivalent) path +set syspath=%ComSpec:cmd.exe=% +for /f "tokens=*" %%x in ('!syspath!where python') do ( call :checkpyversion "%%x" "py2v" "py2path" "py3v" "py3path" ) set "targetpy=3" if /i "!use_py3!" == "FALSE" ( set "targetpy=2"