INNER CODE UNIT · Python

register

iamlukethedev/Hermes3D · plugins/hermes3d-office-bridge/__init__.py:178

def register(ctx: Any) -> None:
    global _publisher

    token = _resolve_token()
    if not token:
        _log.warning(
            "hermes3d-office-bridge: HERMES3D_OFFICE_TOKEN is unset; turns will "
            "not be published. Pin it in ~/.hermes/.env."
        )
        return

    def setting(key: str, fallback: Any) -> Any:
        try:
            value = ctx.get_config(key, fallback)
        except Exception:
            return fallback
        return fallback if value in (None, "") else value

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…