LexActivator.SetProductData("PASTE_CONTENT_OF_PRODUCT.DAT_FILE")
LexActivator.SetProductId("PASTE_PRODUCT_ID", PermissionFlags.LA_USER)
status = LexActivator.IsLicenseGenuine()
if LexStatusCodes.LA_OK == status:
print("License is genuinely activated!")
elif LexStatusCodes.LA_EXPIRED == status:
print("License is genuinely activated but has expired!")
elif LexStatusCodes.LA_SUSPENDED == status:
print("License is genuinely activated but has been suspended!")
elif LexStatusCodes.LA_GRACE_PERIOD_OVER == status:
print("License is genuinely activated but grace period is over!")
print("License is not activated: ", status)
except LexActivatorException as exception:
print('Error code:', exception.code, exception.message)