diff 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
line wrap: on
line diff
--- a/skaapsteker/__main__.py	Wed May 04 01:33:49 2011 +0200
+++ b/skaapsteker/__main__.py	Fri May 06 15:20:25 2011 +0200
@@ -9,13 +9,17 @@
 from pygame.locals import SWSURFACE
 
 from . import options
-from .constants import SCREEN, DEBUG
+from .constants import SCREEN
 from .data import filepath
 from .engine import Engine
 from .levelscene import LevelScene
 from .menuscene import MenuScene
 from .sound import SoundSystem
 
+DEBUG = False
+if os.environ.get('DEBUG'):
+    DEBUG = True
+
 
 def _get_default_save_location():
     """Return a default save game location."""