⚗️ auto import plugin when require

This commit is contained in:
yanyongyu 2020-12-13 12:19:01 +08:00
parent 7d2a87b73e
commit 3d4adaa444

View File

@ -962,5 +962,5 @@ def require(name: str) -> Optional[Export]:
- ``Optional[Export]``
"""
plugin = get_plugin(name)
plugin = get_plugin(name) or load_plugin(name)
return plugin.export if plugin else None