This commit is contained in:
yumoqing 2023-08-07 17:21:42 +08:00
parent 0a4806d9b0
commit b59cb41523

View File

@ -17,5 +17,7 @@ def load_plugins(p_dir):
for m in listFile(pdir, suffixs='.py'): for m in listFile(pdir, suffixs='.py'):
if m.endswith('__init__.py'): if m.endswith('__init__.py'):
continue continue
__import__(m[:-3], locals(), globals()) print('module=', module)
module = os.path.basename(m[:-3])
__import__(module, locals(), globals())