@echo off 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 %* set PYTHON_EXIT=%ERRORLEVEL% CALL manage_interpreter.bat deactivate exit /b %PYTHON_EXIT%