mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-14 16:27:13 +03:00
parent
68f0d10967
commit
5e5ac2db31
2
plug.py
2
plug.py
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user