Allow print and print_debug with multiple arguments
This commit is contained in:
parent
e225f3b8d7
commit
e7d37991b3
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user