From 0a626589144ad46dca1934f3ab869b57a111c17c Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Tue, 5 May 2026 15:17:58 -0400 Subject: add initialization to APIs that might not have already required it --- python/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'python') diff --git a/python/__init__.py b/python/__init__.py index cafea2e8..1de3ff40 100644 --- a/python/__init__.py +++ b/python/__init__.py @@ -345,26 +345,31 @@ def core_serial() -> Optional[str]: :return: current serial :rtype: str, or None on failure """ + _init_plugins() return core.BNGetSerialNumber() def core_expires() -> struct_time: '''License Expiration''' + _init_plugins() return gmtime(core.BNGetLicenseExpirationTime()) def core_product() -> Optional[str]: '''Product string from the license file''' + _init_plugins() return core.BNGetProduct() def core_product_type() -> Optional[str]: '''Product type from the license file''' + _init_plugins() return core.BNGetProductType() def core_license_count() -> int: '''License count from the license file''' + _init_plugins() return core.BNGetLicenseCount() -- cgit v1.3.1