|
33 | 33 | from . import highlevelil |
34 | 34 | from . import lowlevelil |
35 | 35 | from . import mediumlevelil |
36 | | -from . import project |
| 36 | +from .project import Project |
37 | 37 | from .enums import PluginCommandType |
38 | 38 | from .log import log_error |
39 | 39 |
|
@@ -250,7 +250,7 @@ def _high_level_il_instruction_action(view, func, instr, action): |
250 | 250 | @staticmethod |
251 | 251 | def _project_action(project, action): |
252 | 252 | try: |
253 | | - project_obj = project.Project(handle=core.BNNewProjectReference(project)) |
| 253 | + project_obj = Project(handle=core.BNNewProjectReference(project)) |
254 | 254 | action(project_obj) |
255 | 255 | except: |
256 | 256 | log_error(traceback.format_exc()) |
@@ -403,7 +403,7 @@ def _project_is_valid(project, is_valid): |
403 | 403 | try: |
404 | 404 | if is_valid is None: |
405 | 405 | return True |
406 | | - project_obj = project.Project(handle=core.BNNewProjectReference(project)) |
| 406 | + project_obj = Project(handle=core.BNNewProjectReference(project)) |
407 | 407 | return is_valid(project_obj) |
408 | 408 | except: |
409 | 409 | log_error(traceback.format_exc()) |
@@ -786,16 +786,16 @@ def register_for_high_level_il_instruction( |
786 | 786 |
|
787 | 787 | @classmethod |
788 | 788 | def register_for_project( |
789 | | - cls, name: str, description: str, action: Callable[['project.Project'], None], |
790 | | - is_valid: Optional[Callable[['project.Project'], bool]] = None |
| 789 | + cls, name: str, description: str, action: Callable[['Project'], None], |
| 790 | + is_valid: Optional[Callable[['Project'], bool]] = None |
791 | 791 | ): |
792 | 792 | r""" |
793 | 793 | ``register_for_project`` Register a plugin to be called with a project argument |
794 | 794 |
|
795 | 795 | :param str name: name of the plugin (use 'Folder\\Name' to have the menu item nested in a folder) |
796 | 796 | :param str description: description of the plugin |
797 | | - :param callback action: function to call with the :class:`~project.Project` as an argument |
798 | | - :param callback is_valid: optional argument of a function passed a :class:`~project.Project` to determine whether the plugin should be enabled for that project |
| 797 | + :param callback action: function to call with the :class:`~Project` as an argument |
| 798 | + :param callback is_valid: optional argument of a function passed a :class:`~Project` to determine whether the plugin should be enabled for that project |
799 | 799 | :rtype: None |
800 | 800 | :Example: |
801 | 801 |
|
|
0 commit comments