13 lines
No EOL
322 B
Python
13 lines
No EOL
322 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 provider in moo.OTPPROVIDERS:
|
|
providers.append(provider)
|
|
except (AttributeError, ModuleNotFoundError):
|
|
continue |