1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-14 16:27:13 +03:00

Log plugin's load path

Fixes #232
This commit is contained in:
Jonathan Harris 2017-08-16 14:06:16 +01:00
parent 68f0d10967
commit 5e5ac2db31

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))