Files
spark/tools/venv_exec.cmd
T
John Colvin 4f7d77420c 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-07-09 15:14:30 -04: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%