diff --git a/start.sh b/start.sh index a1f5a70..5a05d8a 100755 --- a/start.sh +++ b/start.sh @@ -9,4 +9,7 @@ if [ ! -d ".venv" ]; then .venv/bin/playwright install chromium fi +# Clear stale bytecode before each run to avoid executing outdated .pyc files +find src -name "*.pyc" -delete 2>/dev/null || true + PYTHONDONTWRITEBYTECODE=1 .venv/bin/python main.py "$@"