mirror of
https://github.com/haiwen/seahub.git
synced 2025-05-03 05:27:10 +00:00
7 lines
161 B
Python
7 lines
161 B
Python
from importlib import import_module
|
|
|
|
|
|
def import_module_attr(path):
|
|
package, module = path.rsplit('.', 1)
|
|
return getattr(import_module(package), module)
|