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.
This commit is contained in:
Andrés Barreiro 2017-11-21 19:08:13 +01:00
parent b13107a318
commit 1f2b5d684f

View file

@ -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 %*