diff options
| author | Peter LaFosse <peter@vector35.com> | 2017-01-10 13:33:48 -0500 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2017-01-10 13:33:48 -0500 |
| commit | ab815c0235f30b7b5afde1727992b3b08c576707 (patch) | |
| tree | 8c0f78b96cc0f861e0d6a0b14f244e601ef4cf54 /python/startup.py | |
| parent | 6b3ac4197441eab4e219842b0b4c10c3a1e48f93 (diff) | |
| parent | ffdcc904ea16467c51e3d36773be132b7aa4cb3f (diff) | |
Merge branch 'staging' into dev
Diffstat (limited to 'python/startup.py')
| -rw-r--r-- | python/startup.py | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/python/startup.py b/python/startup.py new file mode 100644 index 00000000..809f185b --- /dev/null +++ b/python/startup.py @@ -0,0 +1,34 @@ +# Copyright (c) 2015-2016 Vector 35 LLC +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to +# deal in the Software without restriction, including without limitation the +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +# sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +# IN THE SOFTWARE. + +import _binaryninjacore as core + + +_plugin_init = False + + +def _init_plugins(): + global _plugin_init + if not _plugin_init: + _plugin_init = True + core.BNInitCorePlugins() + core.BNInitUserPlugins() + if not core.BNIsLicenseValidated(): + raise RuntimeError("License is not valid. Please supply a valid license.") |
