From f53a516219561a84f77d880a20bdb4ed8add26e9 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Wed, 3 Apr 2013 20:31:10 +0200 Subject: [PATCH] Use output logging instead of print statement. --- dosagelib/loader.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dosagelib/loader.py b/dosagelib/loader.py index 80bba4653..d44cc76be 100644 --- a/dosagelib/loader.py +++ b/dosagelib/loader.py @@ -7,6 +7,7 @@ import os import sys import zipfile import importlib +from .output import out def is_frozen (): @@ -36,7 +37,7 @@ def get_modules(folder='plugins'): name ="..%s.%s" % (folder, modname) yield importlib.import_module(name, __name__) except ImportError as msg: - print "ERROR: could not load module %s: %s" % (modname, msg) + out.error("could not load module %s: %s" % (modname, msg)) def get_importable_modules(folder):