From c334c4c919954bfe455a164074e06aca0ab10428 Mon Sep 17 00:00:00 2001 From: Simon Cross Date: Tue, 6 Sep 2016 20:44:39 +0200 Subject: [PATCH] Allow setting DEBUG via an environment variable. --- tabakrolletjie/constants.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.34.1