This commit is contained in:
2026-07-22 15:57:26 -04:00
parent dd42e8fc58
commit f51f204a9d
2 changed files with 105 additions and 0 deletions

View File

@ -22,6 +22,11 @@ import time
import tomllib
from pathlib import Path
# On a console-only machine (no X or Wayland session), tell SDL to draw
# straight to the screen via KMS/DRM, so no desktop environment is needed.
if not os.environ.get("DISPLAY") and not os.environ.get("WAYLAND_DISPLAY"):
os.environ.setdefault("SDL_VIDEODRIVER", "kmsdrm")
import pygame
import camera as cam