Mercurial > pyntnclick
diff 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 |
line wrap: on
line diff
--- a/gamelib/main.py Tue Aug 24 09:58:12 2010 +0200 +++ b/gamelib/main.py Tue Aug 24 11:33:32 2010 +0200 @@ -4,6 +4,13 @@ ''' +# Albow looks for stuff in os.path[0], which isn't always where it expects. +# The following horribleness fixes this. +import sys +import os.path +right_path = os.path.dirname(os.path.dirname(__file__)) +sys.path.insert(0, right_path) + import pygame from pygame.locals import SWSURFACE from albow.dialogs import alert