latest changes
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
@echo off
|
||||
REM ================================================================
|
||||
REM SPS_SKEL - FB_Main-Geruest als SCL erzeugen
|
||||
REM ================================================================
|
||||
REM Aufruf:
|
||||
REM bin\tro_flow.bat --file mubea.csv
|
||||
REM bin\tro_flow.bat --file mubea.csv --tosvg
|
||||
REM bin\tro_flow.bat --file mubea.csv --tosvg --doc
|
||||
REM
|
||||
REM Die JSON-Datei wird in %SKEL_RESULTS% gesucht, die SCL-Datei wird
|
||||
REM ebenfalls dort abgelegt.
|
||||
REM
|
||||
REM Schwesterprogramm: bin\material_flow.bat (Materialfluss der Objekte)
|
||||
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%\scl_skeleton.py" %*
|
||||
set "RC=%ERRORLEVEL%"
|
||||
|
||||
endlocal & exit /b %RC%
|
||||
Reference in New Issue
Block a user