comparison skaapsteker/__main__.py @ 618:72865593bdc7

Make DEBUG an environment variable.
author Jeremy Thurgood <firxen@gmail.com>
date Fri, 06 May 2011 15:20:25 +0200
parents 213f46e787c4
children 0675f390653c
comparison
equal deleted inserted replaced
617:2cd713ec8d59 618:72865593bdc7
7 7
8 import pygame 8 import pygame
9 from pygame.locals import SWSURFACE 9 from pygame.locals import SWSURFACE
10 10
11 from . import options 11 from . import options
12 from .constants import SCREEN, DEBUG 12 from .constants import SCREEN
13 from .data import filepath 13 from .data import filepath
14 from .engine import Engine 14 from .engine import Engine
15 from .levelscene import LevelScene 15 from .levelscene import LevelScene
16 from .menuscene import MenuScene 16 from .menuscene import MenuScene
17 from .sound import SoundSystem 17 from .sound import SoundSystem
18
19 DEBUG = False
20 if os.environ.get('DEBUG'):
21 DEBUG = True
18 22
19 23
20 def _get_default_save_location(): 24 def _get_default_save_location():
21 """Return a default save game location.""" 25 """Return a default save game location."""
22 app = "ninetales" 26 app = "ninetales"