comparison pyntnclick/main.py @ 738:b37c188ddeba pyntnclick

Remove outdated albow resource finding hack
author Neil Muller <neil@dip.sun.ac.za>
date Wed, 16 Jan 2013 10:18:30 +0200
parents 94de2e71db13
children 096a568d98aa
comparison
equal deleted inserted replaced
737:69a0349dce8e 738:b37c188ddeba
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 6 import sys
10 import os.path
11 right_path = os.path.dirname(os.path.dirname(__file__))
12 sys.path.insert(0, right_path)
13 from optparse import OptionParser 7 from optparse import OptionParser
14 8
15 import pygame 9 import pygame
16 from pygame.locals import SWSURFACE 10 from pygame.locals import SWSURFACE
17 11