Allow print and print_debug with multiple arguments

This commit is contained in:
nemunaire 2015-01-21 21:18:34 +01:00
parent e225f3b8d7
commit e7d37991b3

View File

@ -88,11 +88,11 @@ class ModuleLoader(SourceFileLoader):
def prnt(*args): def prnt(*args):
print("[%s]" % module.__name__, *args) print("[%s]" % module.__name__, *args)
module.logger.info(*args) module.logger.info(" ".join(args))
def prnt_dbg(*args): def prnt_dbg(*args):
if module.DEBUG: if module.DEBUG:
print("{%s}" % module.__name__, *args) print("{%s}" % module.__name__, *args)
module.logger.debug(*args) module.logger.debug(" ".join(args))
def mod_save(): def mod_save():
fpath = os.path.join(self.context.data_path, module.__name__ + ".xml") fpath = os.path.join(self.context.data_path, module.__name__ + ".xml")