mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-02-08 03:46:18 +08:00
🐛 fix subplugin detect bug
This commit is contained in:
parent
33412f9bd2
commit
ac613b5839
@ -88,7 +88,7 @@ class PluginManager:
|
|||||||
if hasattr(_internal_space, internal_id):
|
if hasattr(_internal_space, internal_id):
|
||||||
raise RuntimeError("Plugin manager already exists!")
|
raise RuntimeError("Plugin manager already exists!")
|
||||||
|
|
||||||
prefix = sys._getframe(2).f_globals.get(
|
prefix = sys._getframe(3).f_globals.get(
|
||||||
"__name__") or _internal_space.__name__
|
"__name__") or _internal_space.__name__
|
||||||
if not prefix.startswith(_internal_space.__name__):
|
if not prefix.startswith(_internal_space.__name__):
|
||||||
prefix = _internal_space.__name__
|
prefix = _internal_space.__name__
|
||||||
|
Loading…
x
Reference in New Issue
Block a user