Files
spark/tools/venv_exec.cmd
T
John Colvin 7685b1f628 Fix build scripts so they propagate the exit code back to the shell
I noticed this was broken because launch.json configurations would still start the debugger
even when the preLaunchTask (build) failed!
2024-11-29 14:57:13 +00: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%