Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
Signed-off-by: Bubbles The Dev <[email protected]>
  • Loading branch information
KernFerm authored Nov 15, 2024
1 parent adb2c43 commit 3f144b0
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions main-blackjack-game/launcher.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
@echo off
REM Save the current directory
pushd %~dp0

REM Check if main.py exists
if not exist main.py (
echo Error: main.py not found in the current directory.
popd
pause
exit /b 1
)

REM Run the Python script and check for errors
echo Running main.py...
python main.py
if %errorlevel% neq 0 (
echo Error: main.py did not run successfully. Error level: %errorlevel%
popd
pause
exit /b %errorlevel%
)

REM Provide success feedback
echo main.py ran successfully.

REM Return to the original directory
popd
pause

0 comments on commit 3f144b0

Please sign in to comment.