# -*- coding: utf-8 -*-
default_app_config = "ocyan.plugin.oscar_order.apps.OcyanPluginOscarOrderAppConfig"

__all__ = ["OscarOrderConfig"]


def __getattr__(name):
    if name != "OscarOrderConfig":
        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 Oscar3OrderConfig as OscarOrderConfig
    else:
        from .entrypoint import OscarOrderConfig

    return OscarOrderConfig
