Files
spark/tools/venv_exec.cmd
John Colvin 4fdc866485 build: Propagate py script exit codes back to the shell
I noticed the build cmds were broken on Windows because the debugger
would still start even when the preLaunchTask (build) failed!
2025-01-09 01:03:32 -05:00

14 lines
207 B
Batchfile

@echo off
setlocal
set VENV_DIR=%~dp0..\.venv
call %VENV_DIR%\Scripts\activate.bat
%*
set RESULT=%ERRORLEVEL%
call :deactivate
goto :EOF
:deactivate
call %VENV_DIR%\Scripts\deactivate.bat
exit /B %RESULT%