diff options
| author | Josh Ferrell <josh@vector35.com> | 2024-03-04 17:22:33 -0500 |
|---|---|---|
| committer | Josh Ferrell <josh@vector35.com> | 2024-03-04 17:22:33 -0500 |
| commit | 69d4d1fa5b397bf591a4d124bb0f1d8106d072df (patch) | |
| tree | 8ba72cf1490183d692d1ec6b555296bfc58cc897 /python/project.py | |
| parent | 2e3b9c925390cc8b1d72a41d0564bb2862d3dba2 (diff) | |
Make sure plugins are initialized when using projects
Diffstat (limited to 'python/project.py')
| -rw-r--r-- | python/project.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/python/project.py b/python/project.py index a080123a..67597b56 100644 --- a/python/project.py +++ b/python/project.py @@ -24,6 +24,7 @@ from contextlib import contextmanager from os import PathLike from typing import Callable, List, Optional, Union +import binaryninja from . import _binaryninjacore as core from .exceptions import ProjectException from .metadata import Metadata, MetadataValueType @@ -335,6 +336,7 @@ class Project: :return: Opened project :raises ProjectException: If there was an error opening the project """ + binaryninja._init_plugins() project_handle = core.BNOpenProject(str(path)) if project_handle is None: raise ProjectException("Failed to open project") @@ -350,6 +352,7 @@ class Project: :return: Opened project :raises ProjectException: If there was an error creating the project """ + binaryninja._init_plugins() project_handle = core.BNCreateProject(str(path), name) if project_handle is None: raise ProjectException("Failed to create project") |
