From e772802dcdf3522283fe284c6b2b95633a0dec33 Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Sun, 10 Apr 2016 22:23:33 -0400 Subject: fix for #218 --- python/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'python') diff --git a/python/__init__.py b/python/__init__.py index 177886a6..cfcf8698 100644 --- a/python/__init__.py +++ b/python/__init__.py @@ -28,6 +28,8 @@ def _init_plugins(): _plugin_init = True core.BNInitCorePlugins() core.BNInitUserPlugins() + if not core.BNIsLicenseValidated(): + raise RuntimeError, "License is not valid. Please supply a valid license." class DataBuffer: def __init__(self, contents = "", handle = None): @@ -4661,6 +4663,9 @@ def get_time_since_last_update_check(): def updates_checked(): core.BNUpdatesChecked() +if not core.BNIsLicenseValidated(): + raise ImportError, "License is not valid. Please supply a valid license." + bundled_plugin_path = core.BNGetBundledPluginDirectory() user_plugin_path = core.BNGetUserPluginDirectory() -- cgit v1.3.1