]> granicus.if.org Git - python/commitdiff
[2.7] bpo-30450: Fall back on the old env.bat (GH-3443)
authorZachary Ware <zachary.ware@gmail.com>
Fri, 8 Sep 2017 18:21:06 +0000 (11:21 -0700)
committerGitHub <noreply@github.com>
Fri, 8 Sep 2017 18:21:06 +0000 (11:21 -0700)
PCbuild/build.bat

index 13da4be440448572bc172e353d95a920673c2d1d..b263ec7a654c7afd8aa1df0aa1bdf39ad56b36ec 100644 (file)
@@ -101,7 +101,7 @@ if exist "%GIT%" set GITProperty=/p:GIT="%GIT%"
 
 rem Setup the environment
 call "%dir%find_msbuild.bat" %MSBUILD%
-if ERRORLEVEL 1 (echo Cannot locate MSBuild.exe on PATH or as MSBUILD variable & exit /b 2)
+if ERRORLEVEL 1 (call "%dir%env.bat" && set MSBUILD=msbuild)
 
 if "%kill%"=="true" call :Kill