MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / create_project

Method create_project

python/project.py:346–359  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 """

Callers

nothing calls this directly

Calls 2

ProjectExceptionClass · 0.70
ProjectClass · 0.70

Tested by

no test coverage detected