mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-09 07:33:19 -06:00
35 lines
878 B
Python
35 lines
878 B
Python
##########################################################################
|
|
#
|
|
# pgAdmin 4 - PostgreSQL Tools
|
|
#
|
|
# Copyright (C) 2013 - 2025, The pgAdmin Development Team
|
|
# This software is released under the PostgreSQL Licence
|
|
#
|
|
##########################################################################
|
|
|
|
from abc import ABCMeta
|
|
|
|
from pgadmin.utils.dynamic_registry import create_registry_metaclass
|
|
import config
|
|
|
|
|
|
@classmethod
|
|
def load_modules(cls, app=None):
|
|
submodules = []
|
|
|
|
from . import psycopg3 as module
|
|
submodules.append(module)
|
|
|
|
from . import abstract as module
|
|
submodules.append(module)
|
|
|
|
for module in submodules:
|
|
if "init_app" in module.__dict__.keys():
|
|
module.__dict__["init_app"](app)
|
|
|
|
|
|
DriverRegistry = create_registry_metaclass(
|
|
"DriverRegistry", __package__, load_modules=load_modules,
|
|
decorate_as_module=True
|
|
)
|