mirror of
https://github.com/corpnewt/gibMacOS.git
synced 2024-11-13 10:14:03 +01:00
py2/py3 detection fix
This commit is contained in:
parent
ce15707da6
commit
114e184ded
@ -24,8 +24,12 @@ goto checkpy
|
||||
|
||||
:checkpy
|
||||
REM Get python location
|
||||
FOR /F "tokens=* USEBACKQ" %%F IN (`python -V 2^> nul`) DO (
|
||||
SET "python=%%F"
|
||||
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 Check for py and give helpful hints!
|
||||
|
Loading…
Reference in New Issue
Block a user