diff --git a/mach.bat b/mach.bat index 077bd574083..a270b583801 100644 --- a/mach.bat +++ b/mach.bat @@ -36,4 +36,9 @@ IF EXIST "%VS_VCVARS%" ( popd -python mach %* +where /Q py.exe +IF %ERRORLEVEL% NEQ 0 ( + python mach %* +) ELSE ( + py -2 mach %* +)