mirror of
https://github.com/haiwen/seahub.git
synced 2025-05-03 21:46:47 +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)
|