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 sys
|
||||||
import zipfile
|
import zipfile
|
||||||
import importlib
|
import importlib
|
||||||
|
from .output import out
|
||||||
|
|
||||||
|
|
||||||
def is_frozen ():
|
def is_frozen ():
|
||||||
|
@ -36,7 +37,7 @@ def get_modules(folder='plugins'):
|
||||||
name ="..%s.%s" % (folder, modname)
|
name ="..%s.%s" % (folder, modname)
|
||||||
yield importlib.import_module(name, __name__)
|
yield importlib.import_module(name, __name__)
|
||||||
except ImportError as msg:
|
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):
|
def get_importable_modules(folder):
|
||||||
|
|
Loading…
Reference in a new issue