13 lines
No EOL
336 B
Python
13 lines
No EOL
336 B
Python
import importlib
|
|
|
|
from django.conf import settings
|
|
|
|
providers = {}
|
|
|
|
for module in settings.EXPEPHALON_MODULES:
|
|
try:
|
|
moo = importlib.import_module(f"{module}.otp")
|
|
for name, provider in moo.OTPPROVIDERS.items():
|
|
providers[name] = provider
|
|
except (AttributeError, ModuleNotFoundError):
|
|
continue |