1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-03 16:10:26 +00:00

use customized constance (#4191)

This commit is contained in:
王健辉
2019-10-25 15:01:41 +08:00
committed by Daniel Pan
parent 749db0bdbf
commit d2555ab137
25 changed files with 1025 additions and 1 deletions

View File

@@ -0,0 +1,6 @@
from importlib import import_module
def import_module_attr(path):
package, module = path.rsplit('.', 1)
return getattr(import_module(package), module)