errorlevel wurde nicht korrekt zurückgemeldet

This commit is contained in:
2026-01-28 18:36:14 +01:00
parent c29f13a4ae
commit 200145eea7
2 changed files with 32 additions and 8 deletions
+16 -4
View File
@@ -1,6 +1,18 @@
@echo off
CALL manage_interpreter.bat activate_interpreter
cd /d %PROJECT%
CALL manage_interpreter.bat activate
if errorlevel 1 (
echo ERROR: Failed to activate Python environment
exit /b 1
)
cd /d "%PROJECT%"
if errorlevel 1 (
echo ERROR: Failed to change to project directory: %PROJECT%
exit /b 1
)
"%VIRTUAL_ENV%\Scripts\python.exe" -m lib.plant2dxf %*
CALL manage_interpreter.bat deactivate_interpreter
exit /b %ERRORLEVEL%
set PYTHON_EXIT=%ERRORLEVEL%
CALL manage_interpreter.bat deactivate
exit /b %PYTHON_EXIT%