summaryrefslogtreecommitdiff
path: root/python/__init__.py
diff options
context:
space:
mode:
authorplafosse <peter@vector35.com>2016-10-31 16:06:34 -0400
committerplafosse <peter@vector35.com>2016-10-31 16:06:34 -0400
commita6842fc4209ed0bc160222ee61b2e6d9741dc9ef (patch)
treec227612ba1cf905efcf2a07bd1f3bb5829e31de9 /python/__init__.py
parent18e7e9378a4d7dff8140ed35eb47ce7993bd850b (diff)
Refactoring and other improvements of the python api
Diffstat (limited to 'python/__init__.py')
-rw-r--r--python/__init__.py55
1 files changed, 31 insertions, 24 deletions
diff --git a/python/__init__.py b/python/__init__.py
index 402c8526..f38395c8 100644
--- a/python/__init__.py
+++ b/python/__init__.py
@@ -19,31 +19,38 @@
# IN THE SOFTWARE.
-# Binary Ninja components
-import _binaryninjacore as core
-from databuffer import *
-from filemetadata import *
-from fileaccessor import *
-from binaryview import *
-from transform import *
-from architecture import *
-from basicblock import *
-from function import *
-from log import *
-from lowlevelil import *
-from bntype import *
-from functionrecognizer import *
-from update import *
-from plugin import *
-from callingconvention import *
-from platform import *
-from demangle import *
-from mainthread import *
-from interaction import *
-from lineardisassembly import *
-from undoaction import *
-from highlight import *
+import sys
+
+# Binary Ninja components
+try:
+ import _binaryninjacore as core
+ from databuffer import *
+ from filemetadata import *
+ from fileaccessor import *
+ from binaryview import *
+ from transform import *
+ from architecture import *
+ from basicblock import *
+ from function import *
+ from log import *
+ from lowlevelil import *
+ from bntype import *
+ from functionrecognizer import *
+ from update import *
+ from plugin import *
+ from callingconvention import *
+ from platform import *
+ from demangle import *
+ from mainthread import *
+ from interaction import *
+ from lineardisassembly import *
+ from undoaction import *
+ from highlight import *
+except:
+ x = open("/Users/peterl/path", "w")
+ x.write(str(sys.exc_info()))
+ x.close()
class _DestructionCallbackHandler(object):
def __init__(self):