Pfadfeststellung ist nur noch in manage_interpreter.bat. Aufrufende Skripte etwas umgebaut
This commit is contained in:
@@ -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 .asm-Dateien (optional. Standard: Work)
|
||||
REM --out: Zielverzeichnis (optional. Standard: Work\stl_export)
|
||||
pushd "%PROJECT%"
|
||||
|
||||
python %PROJECT_LIB%\read_variables.py %*
|
||||
"%VIRTUAL_ENV%\Scripts\python.exe" -m lib.read_variables %*
|
||||
set PYTHON_EXIT=%ERRORLEVEL%
|
||||
|
||||
popd
|
||||
CALL "%MANAGE%" deactivate
|
||||
exit /b %PYTHON_EXIT%
|
||||
|
||||
Reference in New Issue
Block a user