From 640587a46e39b2a6874c566e281941a1a439c84d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergiusz=20=27q3k=27=20Baza=C5=84ski?= Date: Sun, 14 Jul 2013 18:24:16 +0200 Subject: [PATCH] Hacks for rpi. --- host.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/host.py b/host.py index 4273bd5..ccd7766 100644 --- a/host.py +++ b/host.py @@ -1,12 +1,15 @@ #!/usr/bin/env python3 import sys +import os import time import random import pygame from pygame.locals import * +os.environ["SDL_VIDEODRIVER"] = "dummy" + # "we'll fix it in post!" MAPPING = [ 8, @@ -68,7 +71,9 @@ play_again_at = time.time() if __name__ == "__main__": - pygame.init() + pygame.mixer.init() + pygame.display.init() + pygame.display.set_mode((1,1)) for s in SOUNDS: s.create() pygame.joystick.init()