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

Method open_project

python/project.py:331–343  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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':

Callers

nothing calls this directly

Calls 2

ProjectExceptionClass · 0.70
ProjectClass · 0.70

Tested by

no test coverage detected