# -*- coding: utf-8 -*-
default_app_config = "ocyan.plugin.oscar_address.apps.OcyanPluginOscarAddressAppConfig"

__all__ = ["OscarAddressConfig"]


def __getattr__(name):
    if name != "OscarAddressConfig":
        raise AttributeError(f"module {__name__!r} has no attribute {name!r}")

    from ocyan.plugin.oscar.info import OSCAR_NEEDS_OXYAN

    if OSCAR_NEEDS_OXYAN:
        from .entrypoint import Oscar3AddressConfig as OscarAddressConfig
    else:
        from .entrypoint import OscarAddressConfig

    return OscarAddressConfig
