mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2026-10-27 01:16:06 +03:00
1 parent
68f0d10967
commit
5e5ac2db31
1 file changed
+1
-1
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user