Aufruf der Tools über Umgebungsvariable

This commit is contained in:
Michael Stangl
2026-05-05 15:52:43 +02:00
parent e94d05b0ed
commit 85964ba96d
2 changed files with 51 additions and 4 deletions
+13 -4
View File
@@ -5,8 +5,17 @@ REM ================================================================
REM Verwendung: mkpyproject.bat <projektname> [zielverzeichnis]
REM ================================================================
REM Pfad zum Python-Skript (relativ zu diesem Skript)
set "TOOLS_LIB=%~dp0..\lib"
REM Umgebung laden
call "%~dp0setenv.bat"
REM Pruefen ob Umgebung gesetzt wurde
if not defined PV_LIB (
echo.
echo FEHLER: Umgebung konnte nicht geladen werden!
echo setenv.bat hat die Variablen nicht gesetzt.
echo.
exit /b 1
)
REM Pruefen ob Python verfuegbar ist
py --version >nul 2>&1
@@ -31,8 +40,8 @@ if errorlevel 1 (
echo ================================================================
exit /b 1
)
python "%TOOLS_LIB%\mkpyproject.py" %*
python "%PV_LIB%\mkpyproject.py" %*
goto :eof
)
py "%TOOLS_LIB%\mkpyproject.py" %*
py "%PV_LIB%\mkpyproject.py" %*