Log plugin's load path

Fixes #232
This commit is contained in:
Jonathan Harris committed 2017-08-16 14:06:16 +01:00
1 parent 68f0d10967
commit 5e5ac2db31
1 file changed
+1 -1
+1 -1
View File
@@ -39,7 +39,7 @@ class Plugin(object):
self.module = None # None for disabled plugins.
if loadfile:
sys.stdout.write('loading plugin %s\n' % name)
sys.stdout.write('loading plugin %s from "%s"\n' % (name, loadfile.encode('utf-8')))
with open(loadfile, 'rb') as plugfile:
module = imp.load_module(name, plugfile, loadfile.encode(sys.getfilesystemencoding()),
('.py', 'r', imp.PY_SOURCE))