Pfadfeststellung ist nur noch in manage_interpreter.bat. Aufrufende Skripte etwas umgebaut

This commit is contained in:
2026-04-08 12:17:16 +02:00
parent fb25aca5ce
commit 0defdc24cc
10 changed files with 102 additions and 34 deletions
+14 -6
View File
@@ -1,10 +1,18 @@
@echo off
REM ~dp0 steht für das Verzeichnis, in der diese Datei liegt
setlocal
SET "MANAGE=%~dp0manage_interpreter.bat"
call setenv.bat
CALL "%MANAGE%" activate
if errorlevel 1 (
echo ERROR: Failed to activate Python environment
exit /b 1
)
REM Beispielaufruf mit Parametern:
REM --in: Ordner mit .par-Dateien (optional. Standard: Input)
REM --out: Zielverzeichnis (optional. Standard: Work)
pushd "%PROJECT%"
python %PROJECT_LIB%\create_assemblies.py %*
"%VIRTUAL_ENV%\Scripts\python.exe" -m lib.create_assemblies %*
set PYTHON_EXIT=%ERRORLEVEL%
popd
CALL "%MANAGE%" deactivate
exit /b %PYTHON_EXIT%