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