def _addon_module_name(package_name):
    parts = package_name.split(".")
    if len(parts) >= 3 and parts[0] == "bl_ext":
        return ".".join(parts[:3])
    return parts[0]


__addon_name__ = _addon_module_name(__package__)

# Keep this value aligned with bl_info.version and blender_manifest.toml.
# It is sent to 3DRipper only for compatibility diagnostics; entitlement is
# always calculated by the server.
ADDON_VERSION = "0.1.18"
ADDON_ENVIRONMENT = "production"
ADDON_SERVICE_URL = "https://3dripper.online"
ADDON_CLIENT_ID = "threedripper_helper"
ADDON_SCOPE = "blender:addon"
