From 1f2b5d684f6212ccca264fa0e9917152a9e5d321 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Barreiro?= Date: Tue, 21 Nov 2017 19:08:13 +0100 Subject: [PATCH] Get back to working dir after vcvarsall.bat When using cmd.exe directly, vcvarsall.bat changes the working directory. To prevent this, pushd and popd could be used. --- mach.bat | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mach.bat b/mach.bat index 74c9d146e651..f81fc6a7e9b7 100644 --- a/mach.bat +++ b/mach.bat @@ -1,5 +1,7 @@ @echo off +pushd . + IF EXIST "%ProgramFiles(x86)%" ( set "ProgramFiles32=%ProgramFiles(x86)%" ) ELSE ( @@ -32,4 +34,6 @@ IF EXIST "%VS_VCVARS%" ( EXIT /B ) +popd + python mach %*