# HG changeset patch # User Neil Muller # Date 1336847660 -7200 # Node ID 2d72e84a765b7a5f69c797f20d5c54813bb07ad0 # Parent 16ce5ed563c9c53c1d3f19c49cf7402057efe415 Add debugging print to fallback path diff -r 16ce5ed563c9 -r 2d72e84a765b gamelib/gui.py --- a/gamelib/gui.py Sat May 12 20:17:28 2012 +0200 +++ b/gamelib/gui.py Sat May 12 20:34:20 2012 +0200 @@ -72,6 +72,8 @@ try: icon = data.load_image('images/icons/%s_%s.png' % (name, suffix)) except pygame.error: + print('Unable to load %s' % + data.filepath('images/icons/%s_%s.png' % (name, suffix))) icon = pygame.Surface((64, 64), pygame.SRCALPHA) base = pygame.Surface((self.WIDTH, self.HEIGHT), pygame.SRCALPHA) base.blit(bg, (self.WIDTH / 2 - 32, 0))