mkpyproject funktioniert jetzt auch ohne python interpreter

This commit is contained in:
Michael Stangl
2026-06-10 10:18:50 +02:00
parent 7320efba56
commit 0ab28f5cca
14 changed files with 478 additions and 43 deletions
+17 -10
View File
@@ -4,35 +4,42 @@ REM ================================================================
REM TOOLS - Umgebungsvariablen Setup
REM ================================================================
if defined TOOLS_BIN (
echo TOOLS Umgebung bereits gesetzt.
goto :show
)
echo Setting up environment variables for TOOLS ...
REM Basis-Projektpfad (absolut)
set "PROJECT=c:\tools"
REM Pfade fuer verschiedene Komponenten
set "PV_BIN=%PROJECT%\bin"
set "PV_LIB=%PROJECT%\lib"
set "TOOLS_BIN=%PROJECT%\bin"
set "TOOLS_LIB=%PROJECT%\lib"
set "TOOLS_TEMPLATES=%PROJECT%\templates"
REM Python-Pfad erweitern (nur wenn noch nicht vorhanden)
echo %PYTHONPATH% | find /i "%PV_LIB%" >nul
echo %PYTHONPATH% | find /i "%TOOLS_LIB%" >nul
if errorlevel 1 (
set "PYTHONPATH=%PV_LIB%;%PYTHONPATH%"
) else (
REM Path ist bereits in PYTHONPATH enthalten, nicht erneut hinzufuegen
set "PYTHONPATH=%TOOLS_LIB%;%PYTHONPATH%"
)
REM Ordner erstellen falls sie nicht existieren
if not exist "%PV_BIN%" mkdir "%PV_BIN%"
if not exist "%PV_LIB%" mkdir "%PV_LIB%"
if not exist "%TOOLS_BIN%" mkdir "%TOOLS_BIN%"
if not exist "%TOOLS_LIB%" mkdir "%TOOLS_LIB%"
if not exist "%TOOLS_TEMPLATES%" mkdir "%TOOLS_TEMPLATES%"
REM Umgebungsvariablen anzeigen
:show
echo.
echo ================================================================
echo TOOLS ENVIRONMENT SETUP COMPLETE
echo ================================================================
echo PROJECT = %PROJECT%
echo PV_BIN = %PV_BIN%
echo PV_LIB = %PV_LIB%
echo TOOLS_BIN = %TOOLS_BIN%
echo TOOLS_LIB = %TOOLS_LIB%
echo TOOLS_TEMPLATES = %TOOLS_TEMPLATES%
echo PYTHONPATH = %PYTHONPATH%
echo ================================================================
echo.