fce0b8d9a1
setenv.bat (and activate_venv/get_cmd/install_py.bat) had a UTF-8 BOM, which cmd.exe read as part of the @echo off line, breaking every bin script that calls setenv.bat via `call`. Stripped the BOM. material_flow.bat/.sh and tro_flow.bat/.sh now check up front whether the Graphviz engine --tosvg needs (dot, or neato with --use-cords) is resolvable, and print an early WARNUNG with fix instructions if not - before the CSV is even parsed. The Python scripts still run and report the same failure in detail if the SVG step is actually reached.
21 lines
648 B
Batchfile
21 lines
648 B
Batchfile
@echo off
|
|
REM ================================================================
|
|
REM SPS_SKEL - Python Virtual Environment einrichten
|
|
REM ================================================================
|
|
|
|
call "%~dp0setenv.bat"
|
|
|
|
if not exist "%SPS_SKEL%\.venv" (
|
|
echo Initialisiere Python virtual environment...
|
|
py -m venv "%SPS_SKEL%\.venv" --upgrade-deps
|
|
echo Erfolgreich.
|
|
|
|
call "%SPS_SKEL%\.venv\Scripts\activate.bat"
|
|
echo Installiere erforderliche Python Packages...
|
|
pip install -r "%SPS_SKEL%\requirements.txt" -q
|
|
echo Erfolgreich.
|
|
deactivate
|
|
) else (
|
|
echo Erforderliche Python Packages bereits installiert!
|
|
)
|