summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Wiens <github@psifertex.com>2026-05-05 15:17:58 -0400
committerJordan Wiens <github@psifertex.com>2026-05-05 15:17:58 -0400
commit0a626589144ad46dca1934f3ab869b57a111c17c (patch)
tree471f8ba216fed1061736501fcb501ac6a4423ae1
parent4963e1da2c001b0eac147482884b9630f9963654 (diff)
add initialization to APIs that might not have already required it
-rw-r--r--python/__init__.py5
1 files changed, 5 insertions, 0 deletions
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()