Skip to content

Commit

Permalink
Get back to working dir after vcvarsall.bat
Browse files Browse the repository at this point in the history
When using cmd.exe directly, vcvarsall.bat changes the working directory.
To prevent this, pushd and popd could be used.
  • Loading branch information
drewler committed Nov 21, 2017
1 parent b13107a commit 1f2b5d6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mach.bat
@@ -1,5 +1,7 @@
@echo off

pushd .

IF EXIST "%ProgramFiles(x86)%" (
set "ProgramFiles32=%ProgramFiles(x86)%"
) ELSE (
Expand Down Expand Up @@ -32,4 +34,6 @@ IF EXIST "%VS_VCVARS%" (
EXIT /B
)

popd

python mach %*

0 comments on commit 1f2b5d6

Please sign in to comment.