Update base.py

This commit is contained in:
Namhyeon Go 2024-07-09 16:44:45 +09:00 committed by GitHub
parent d3f3b423c6
commit 16bbddcd94
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -73,9 +73,8 @@ class Extension():
@classmethod
def register(cls, s)
module_name = s.split('.')[0]
module_name, class_name = s.trim().split('.')[0:2]
module_path = 'plugins.' + module_name
class_name = s.split('.')[-1]
try:
module = importlib.import_module(module_path)