summaryrefslogtreecommitdiff
path: root/python/__init__.py
diff options
context:
space:
mode:
authorJordan Wiens <jordan@psifertex.com>2016-04-10 22:23:33 -0400
committerJordan Wiens <jordan@psifertex.com>2016-04-10 22:23:33 -0400
commite772802dcdf3522283fe284c6b2b95633a0dec33 (patch)
tree03a3f155bd7e4ca7528f54504effa66b4e63a66a /python/__init__.py
parent3ac457319feb637a37947b252550e18eb8dd4d84 (diff)
fix for #218
Diffstat (limited to 'python/__init__.py')
-rw-r--r--python/__init__.py5
1 files changed, 5 insertions, 0 deletions
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()