comparison gamelib/main.py @ 102:322cbc0a8cce

Mac build stuff.
author Jeremy Thurgood <firxen@gmail.com>
date Tue, 24 Aug 2010 11:33:32 +0200
parents d449c4674da8
children 65976205fc2d
comparison
equal deleted inserted replaced
101:19d784fd3918 102:322cbc0a8cce
1 '''Game main module. 1 '''Game main module.
2 2
3 Contains the entry point used by the run_game.py script. 3 Contains the entry point used by the run_game.py script.
4 4
5 ''' 5 '''
6
7 # Albow looks for stuff in os.path[0], which isn't always where it expects.
8 # The following horribleness fixes this.
9 import sys
10 import os.path
11 right_path = os.path.dirname(os.path.dirname(__file__))
12 sys.path.insert(0, right_path)
6 13
7 import pygame 14 import pygame
8 from pygame.locals import SWSURFACE 15 from pygame.locals import SWSURFACE
9 from albow.dialogs import alert 16 from albow.dialogs import alert
10 from albow.shell import Shell 17 from albow.shell import Shell