Use output logging instead of print statement.
This commit is contained in:
parent
a972729c0d
commit
f53a516219
1 changed files with 2 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue