mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-09-06 20:16:47 +00:00
Merge pull request #334 from nonebot/yanyongyu/issue332
Fix: log module name error
This commit is contained in:
@ -215,6 +215,9 @@ class PluginLoader(SourceFileLoader):
|
||||
return
|
||||
# really need?
|
||||
# setattr(module, "__manager__", self.manager)
|
||||
if self._plugin_token:
|
||||
setattr(module, "__plugin_name__",
|
||||
_current_plugin.get(self._plugin_token))
|
||||
if self._export_token:
|
||||
setattr(module, "__export__", _export.get())
|
||||
|
||||
|
Reference in New Issue
Block a user