From a6842fc4209ed0bc160222ee61b2e6d9741dc9ef Mon Sep 17 00:00:00 2001 From: plafosse Date: Mon, 31 Oct 2016 16:06:34 -0400 Subject: Refactoring and other improvements of the python api --- python/__init__.py | 55 ++++++++++++++++++++++++++++++------------------------ 1 file changed, 31 insertions(+), 24 deletions(-) (limited to 'python/__init__.py') 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): -- cgit v1.3.1