Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,6 @@ screenshots/

# Notes file
notes.txt

# Batch file
*.bat
174 changes: 0 additions & 174 deletions electoral_votes_simulator_october_2024.py

This file was deleted.

28 changes: 28 additions & 0 deletions 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