diff options
| author | Rusty Wagner <rusty@vector35.com> | 2018-08-28 17:19:32 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2018-08-28 17:19:32 -0400 |
| commit | 20e06506a3d96c7327ca5d729ab01e8c2a7cff3c (patch) | |
| tree | 65880063ccbdcb45cc247a0138915d8560d2ec27 /python/downloadprovider.py | |
| parent | 5841af2db8e8dcf4e0da0c438ac040c5fa90038b (diff) | |
| parent | 426bb3d8b47b93658bf969c429a8b98adae13c30 (diff) | |
Merge branch 'dev' into test_stack_adjust
Diffstat (limited to 'python/downloadprovider.py')
| -rw-r--r-- | python/downloadprovider.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/python/downloadprovider.py b/python/downloadprovider.py index 14368ee7..1c94aef3 100644 --- a/python/downloadprovider.py +++ b/python/downloadprovider.py @@ -26,6 +26,8 @@ import traceback # Binary Ninja Components import binaryninja._binaryninjacore as core + +import binaryninja from binaryninja.setting import Setting from binaryninja import with_metaclass from binaryninja import startup @@ -79,7 +81,7 @@ class _DownloadProviderMetaclass(type): @property def list(self): """List all DownloadProvider types (read-only)""" - startup._init_plugins() + binaryninja._init_plugins() count = ctypes.c_ulonglong() types = core.BNGetDownloadProviderList(count) result = [] @@ -89,7 +91,7 @@ class _DownloadProviderMetaclass(type): return result def __iter__(self): - startup._init_plugins() + binaryninja._init_plugins() count = ctypes.c_ulonglong() types = core.BNGetDownloadProviderList(count) try: @@ -99,7 +101,7 @@ class _DownloadProviderMetaclass(type): core.BNFreeDownloadProviderList(types) def __getitem__(self, value): - startup._init_plugins() + binaryninja._init_plugins() provider = core.BNGetDownloadProviderByName(str(value)) if provider is None: raise KeyError("'%s' is not a valid download provider" % str(value)) |
