mirror of
https://github.com/Kozea/Radicale.git
synced 2025-09-15 20:36:55 +00:00
Use relative imports for acl and storage modules
This commit is contained in:
parent
8dcc613f0a
commit
f9d041ba6b
2 changed files with 3 additions and 2 deletions
|
@ -53,5 +53,5 @@ def load():
|
|||
else:
|
||||
PUBLIC_USERS.extend(_config_users("public_users"))
|
||||
PRIVATE_USERS.extend(_config_users("private_users"))
|
||||
module = __import__("radicale.acl", fromlist=[acl_type])
|
||||
module = __import__("acl.%s" % acl_type, globals=globals(), level=2)
|
||||
return getattr(module, acl_type)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue