Create a new project :param path: Path to the project directory (.bnpr) :param name: Name of the new project :return: Opened project :raises ProjectException: If there was an error creating the project
(path: AsPath, name: str)
| 344 | |
| 345 | @staticmethod |
| 346 | def create_project(path: AsPath, name: str) -> 'Project': |
| 347 | """ |
| 348 | Create a new project |
| 349 | |
| 350 | :param path: Path to the project directory (.bnpr) |
| 351 | :param name: Name of the new project |
| 352 | :return: Opened project |
| 353 | :raises ProjectException: If there was an error creating the project |
| 354 | """ |
| 355 | binaryninja._init_plugins() |
| 356 | project_handle = core.BNCreateProject(str(path), name) |
| 357 | if project_handle is None: |
| 358 | raise ProjectException("Failed to create project") |
| 359 | return Project(handle=project_handle) |
| 360 | |
| 361 | def open(self) -> bool: |
| 362 | """ |
nothing calls this directly
no test coverage detected