2023-12-25 00:27:23 +11:00
|
|
|
from importlib import import_module
|
|
|
|
from . import utils, models
|
|
|
|
from .config import config
|
|
|
|
|
2023-12-28 23:51:38 +11:00
|
|
|
globals()['backend']=import_module('.backends.'+config['backend']['type'],'auth')
|
2023-12-25 01:18:56 +11:00
|
|
|
backend.config=config['backend']['options']
|
|
|
|
backend.utils=utils
|
2023-12-28 23:51:38 +11:00
|
|
|
backend.models=models
|
|
|
|
models.backend=backend
|
|
|
|
backend.init()
|