summaryrefslogtreecommitdiff
path: root/python/__init__.py
diff options
context:
space:
mode:
authorJordan Wiens <jordan@psifertex.com>2020-11-08 14:18:37 -0500
committerJordan Wiens <jordan@psifertex.com>2020-11-08 14:18:37 -0500
commita1cecfa5245ecec8ae1530a979825827296f612f (patch)
tree8ab57fb91b211bfdbba3abacf0b36a96ce37dbf9 /python/__init__.py
parent4916ad08adec80d697280ebb9d4ed92949551470 (diff)
small documentation improvements to demonstrate plugin loading and caveat open_view behavior around bndb loading
Diffstat (limited to 'python/__init__.py')
-rw-r--r--python/__init__.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/python/__init__.py b/python/__init__.py
index 85a602c4..9c17db48 100644
--- a/python/__init__.py
+++ b/python/__init__.py
@@ -283,7 +283,16 @@ def get_memory_usage_info():
def open_view(*args, **kwargs):
"""
- Open a BinaryView object
+ `open_view` opens a BinaryView object.
+
+ Note: If attempting to open a BNDB, the file MUST have the suffix .bndb, or else the file will not be loaded as a database.
+
+ :param str filename: path to filename or bndb to open
+ :param bool update_analysis: whether or not to run :func:`update_analysis_and_wait` after opening a :py:class:`BinaryView`, defaults to ``True``
+ :param callback progress_func: optional function to be called with the current progress and total count
+ :param dict options: a dictionary in the form {setting identifier string : object value}
+ :return: returns a :py:class:`BinaryView` object for the given filename or ``None``
+ :rtype: :py:class:`BinaryView` or ``None``
:Example:
>>> from binaryninja import *