forked from openlp/openlp
Pedantics.
This commit is contained in:
parent
42e0eea6e7
commit
b5f3e46ad4
@ -93,13 +93,12 @@ class PluginManager(object):
|
||||
try:
|
||||
# Use the "imp" library to try to get around a problem with the PyUNO library which
|
||||
# monkey-patches the __import__ function to do some magic. This causes issues with our tests.
|
||||
# First, try to find the module we want to import, searching the directory in ``root``
|
||||
# First, try to find the module we want to import, searching the directory in root
|
||||
fp, path_name, description = imp.find_module(module_name, [root])
|
||||
# Then load the module (do the actual import) using the details from ``find_module()``
|
||||
# Then load the module (do the actual import) using the details from find_module()
|
||||
imp.load_module(module_name, fp, path_name, description)
|
||||
except ImportError, e:
|
||||
log.exception(u'Failed to import module %s on path %s for reason %s',
|
||||
module_name, path, e.args[0])
|
||||
log.exception(u'Failed to import module %s on path %s: %s', module_name, path, e.args[0])
|
||||
plugin_classes = Plugin.__subclasses__()
|
||||
plugin_objects = []
|
||||
for p in plugin_classes:
|
||||
|
Loading…
Reference in New Issue
Block a user