From 33618253d33989b6bac55b1109c8e2f9caf9f69c Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 7 Sep 2016 11:08:09 +0200 Subject: [PATCH] Hide loader path print behind debug --- tabakrolletjie/loader.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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): -- 2.34.1