In Batch reflect subfolder /bin, revert script to old due to error in display

This commit is contained in:
2025-09-10 12:14:54 +02:00
parent cd24151050
commit e0a8aad59d
2 changed files with 96 additions and 36 deletions

View File

@@ -11,6 +11,7 @@ rem ============================================
set "APP_NAME=PPTX Image Compressor"
set "SELF_DIR=%~dp0"
set "BIN_DIR=%SELF_DIR%\bin\"
set "SCRIPT=%SELF_DIR%pptx_image_compress.py"
rem ---- Python Embeddable config (adjust if needed) ----
@@ -23,9 +24,9 @@ set "PY_EXE=%PY_DIR%\python.exe"
rem ---- CaesiumCLT discovery ----
set "CAE_EXE=caesiumclt.exe"
if exist "%SELF_DIR%%CAE_EXE%" (
if exist "%BIN_DIR%%CAE_EXE%" (
rem Prefer local caesiumclt.exe near the BAT
set "PATH=%SELF_DIR%;%PATH%"
set "PATH=%BIN_DIR%;%PATH%"
) else (
where /q %CAE_EXE%
if errorlevel 1 (