I noticed the build cmds were broken on Windows because the debugger would still start even when the preLaunchTask (build) failed!
14 lines
207 B
Batchfile
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%
|