erste Fassung eines Python Skripts zur Skeleton Erzeugung über ein json Zwischenformat geschrieben
This commit is contained in:
@@ -18,15 +18,20 @@ if errorlevel 1 (
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
where dot >nul 2>nul
|
||||
set "DOT_EXE=dot"
|
||||
where %DOT_EXE% >nul 2>nul
|
||||
if errorlevel 1 (
|
||||
echo dot.exe wurde nicht gefunden. Bitte Graphviz installieren:
|
||||
echo winget install --id Graphviz.Graphviz -e
|
||||
exit /b 1
|
||||
if exist "C:\Program Files\Graphviz\bin\dot.exe" (
|
||||
set "DOT_EXE=C:\Program Files\Graphviz\bin\dot.exe"
|
||||
) else (
|
||||
echo dot.exe wurde nicht gefunden. Bitte Graphviz installieren:
|
||||
echo winget install --id Graphviz.Graphviz -e
|
||||
exit /b 1
|
||||
)
|
||||
)
|
||||
|
||||
echo Rendere %SVG_FILE% ...
|
||||
dot -Tsvg "%DOT_FILE%" -o "%SVG_FILE%"
|
||||
"%DOT_EXE%" -Tsvg "%DOT_FILE%" -o "%SVG_FILE%"
|
||||
if errorlevel 1 (
|
||||
echo Fehler beim Rendern der SVG-Datei.
|
||||
exit /b 1
|
||||
|
||||
Reference in New Issue
Block a user