@echo off REM ================================================================ REM SPS_SKEL - Hardwareplanung einlesen (TIA-Import + Positionsdatei) REM ================================================================ REM Aufruf: REM bin\hw_import.bat --tia Mubea\mubea-1_TIA.xlsx --positions Mubea\Mubea_positionsconv.json REM bin\hw_import.bat --tia mubea-1_TIA.xlsx --project Mubea REM REM TIA-Import und *_positionsconv.json bzw. *_positionsdraw.json werden in REM %SKEL_DATA% gesucht (auch mit Unterordner, oder als Pfad angegeben). REM Ergebnis _hw.json und Bericht _hw.md in %SKEL_RESULTS%. REM REM Weiter: bin\merge_hw_layout.bat --tro _tro.json --hw _hw.json REM ================================================================ setlocal REM Umgebung setzen (SKEL_DATA, SKEL_RESULTS, SKEL_LIB, PYTHONPATH ...) call "%~dp0setenv.bat" >nul REM Virtuelle Umgebung nutzen, falls vorhanden (pydantic wird benoetigt) if exist "%SPS_SKEL%\.venv\Scripts\activate.bat" ( call "%SPS_SKEL%\.venv\Scripts\activate.bat" ) REM Python-Interpreter bestimmen (py-Launcher bevorzugt, sonst python) set "PY=py" py --version >nul 2>&1 || set "PY=python" "%PY%" "%SKEL_LIB%\hw_import.py" %* set "RC=%ERRORLEVEL%" endlocal & exit /b %RC%