Open an existing project :param path: Path to the project directory (.bnpr) or project metadata file (.bnpm) :return: Opened project :raises ProjectException: If there was an error opening the project
(path: AsPath)
| 329 | |
| 330 | @staticmethod |
| 331 | def open_project(path: AsPath) -> 'Project': |
| 332 | """ |
| 333 | Open an existing project |
| 334 | |
| 335 | :param path: Path to the project directory (.bnpr) or project metadata file (.bnpm) |
| 336 | :return: Opened project |
| 337 | :raises ProjectException: If there was an error opening the project |
| 338 | """ |
| 339 | binaryninja._init_plugins() |
| 340 | project_handle = core.BNOpenProject(str(path)) |
| 341 | if project_handle is None: |
| 342 | raise ProjectException("Failed to open project") |
| 343 | return Project(handle=project_handle) |
| 344 | |
| 345 | @staticmethod |
| 346 | def create_project(path: AsPath, name: str) -> 'Project': |
nothing calls this directly
no test coverage detected