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
+15 -3
View File
@@ -1,6 +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
)
python "%PROJECT_LIB%\diff_dimensions.py" %*
pushd "%PROJECT%"
"%VIRTUAL_ENV%\Scripts\python.exe" -m lib.diff_dimensions %*
set PYTHON_EXIT=%ERRORLEVEL%
popd
CALL "%MANAGE%" deactivate
exit /b %PYTHON_EXIT%