auth/main.py

8 lines
252 B
Python
Raw Normal View History

2023-12-25 00:27:23 +11:00
from importlib import import_module
from . import utils, models
from .config import config
globals()['backend']=import_module('backends.'+config['backend']['type'])
backend.config=config['backend']['options']
backend.utils=utils
models.backend=backend