commit all assets
I should have done this a long time ago
This commit is contained in:
29
MOTDFrame/FrameTool.bat
Normal file
29
MOTDFrame/FrameTool.bat
Normal file
@@ -0,0 +1,29 @@
|
||||
@echo off
|
||||
REM Check if Python is installed
|
||||
where python >nul 2>&1
|
||||
if errorlevel 1 (
|
||||
echo Python is not installed or not in PATH.
|
||||
pause
|
||||
exit /b
|
||||
)
|
||||
|
||||
REM Check if a file was dragged onto the script
|
||||
if "%~1"=="" (
|
||||
echo No image file was dragged onto the script.
|
||||
pause
|
||||
exit /b
|
||||
)
|
||||
|
||||
REM Get the frame image path
|
||||
set "frame_image_path=MOTDFrame.png" REM Path to the frame image
|
||||
|
||||
REM Get the directory of the batch file
|
||||
set "script_dir=%~dp0"
|
||||
|
||||
REM Run the Python script with all dragged images and the frame image
|
||||
python "%script_dir%FrameTool.py" %* "%script_dir%%frame_image_path%"
|
||||
|
||||
REM Run Thumbs.py after FrameTool.py finishes without passing any arguments
|
||||
python "%script_dir%Thumbs.py"
|
||||
|
||||
pause
|
||||
Reference in New Issue
Block a user