Files
spark/tools/venv_exec.cmd
T
John Colvin dfa47bd88e 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-10-14 17:21:45 +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%