From: Neil Date: Wed, 7 Sep 2016 09:08:09 +0000 (+0200) Subject: Hide loader path print behind debug X-Git-Tag: tabakrolletjie-v1.0.0~211 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=33618253d33989b6bac55b1109c8e2f9caf9f69c;p=tabakrolletjie.git Hide loader path print behind debug --- diff --git a/tabakrolletjie/loader.py b/tabakrolletjie/loader.py index d37120f..b2ff527 100644 --- a/tabakrolletjie/loader.py +++ b/tabakrolletjie/loader.py @@ -6,6 +6,8 @@ import os import pygame.image import pygame.display +from .constants import DEBUG + class Loader(object): """ Load data files from beneath a prefix. """ @@ -18,7 +20,8 @@ class Loader(object): path = "/".join(parts) rel_path = os.path.join(*path.split("/")) abs_path = os.path.join(self._prefix, rel_path) - print abs_path + if DEBUG: + print abs_path return abs_path def open_file(self, *parts):