/
githubmirror
/
cheat.sh
Обзор
Документация
Войти
/
githubmirror
/
cheat.sh
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
lib/adapter/__init__.py
19 строк
434 B
Igor Chubin
Format python code using black
29 июл 2025, 21:07
29 июл 2025, 21:07
e82797a
Код
Авторство
О чём код?
""" Import all adapters from the current directory and make them available for import as adapter_module.AdapterName """ # pylint: disable=wildcard-import,relative-import from os.path import dirname, basename, isfile, join import glob __all__ = [ basename(f)[:-3] for f in glob.glob(join(dirname(__file__), "*.py")) if isfile(f) and not f.endswith("__init__.py") ] from .adapter import all_adapters from . import *