# -*- coding: utf-8 -*-
default_app_config = "ocyan.plugin.barebone.apps.PluginBareboneAppConfig"

from importlib import import_module

__all__ = ["BareboneConfig"]


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

    try:
        import_module("ocyan.i18n")
        try:
            import_module("ocyan.plugin.i18n")
        except ImportError as e:
            raise Exception(
                "barebone i18n is deprecated, please install ocyan.plugin.i18n to get rid of this error"
            ) from e
    except ImportError:
        pass

    from .entrypoint import BareboneConfig

    return BareboneConfig
