From: Simon Cross Date: Tue, 6 Sep 2016 18:44:39 +0000 (+0200) Subject: Allow setting DEBUG via an environment variable. X-Git-Tag: tabakrolletjie-v1.0.0~233 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=c334c4c919954bfe455a164074e06aca0ab10428;p=tabakrolletjie.git Allow setting DEBUG via an environment variable. --- diff --git a/tabakrolletjie/constants.py b/tabakrolletjie/constants.py index 5acf89a..378003b 100644 --- a/tabakrolletjie/constants.py +++ b/tabakrolletjie/constants.py @@ -1,10 +1,12 @@ """ Game constants. """ +import os + TITLE = "Space Turnips" # Debug -DEBUG = False +DEBUG = os.environ.get("TABAK_DEBUG", "").lower() in ("1", "y", "yes") # 704 is 768 minus space for window decorations :) SCREEN_SIZE = (1024, 704)