From b59cb41523b987b695f9235fb0062e2c4424c7af Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 7 Aug 2023 17:21:42 +0800 Subject: [PATCH] bugfix --- ahserver/loadplugins.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ahserver/loadplugins.py b/ahserver/loadplugins.py index d029266..941c879 100644 --- a/ahserver/loadplugins.py +++ b/ahserver/loadplugins.py @@ -17,5 +17,7 @@ def load_plugins(p_dir): for m in listFile(pdir, suffixs='.py'): if m.endswith('__init__.py'): continue - __import__(m[:-3], locals(), globals()) + print('module=', module) + module = os.path.basename(m[:-3]) + __import__(module, locals(), globals())