summaryrefslogtreecommitdiff
path: root/python/__init__.py
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2022-09-01 21:31:04 -0400
committerGlenn Smith <glenn@vector35.com>2022-09-29 21:02:20 -0400
commit020bcb7dbfc172fd4c134be8a12d67355f4395e7 (patch)
treee8ac8a69dff95e0fb8fcb630de68a25080df9a0f /python/__init__.py
parentbac2b01e488e6a58dd3d16d6148dc5bea16be162 (diff)
BinaryViewType.open(): Allow PathLike filename
Diffstat (limited to 'python/__init__.py')
-rw-r--r--python/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/__init__.py b/python/__init__.py
index 1e73f2cc..2d36c7be 100644
--- a/python/__init__.py
+++ b/python/__init__.py
@@ -303,7 +303,7 @@ def load(*args, **kwargs) -> BinaryView:
"""
`load` is a convenience wrapper for :py:class:`BinaryViewType.load` that opens a BinaryView object.
- :param Union[str, bytes, bytearray, 'databuffer.DataBuffer'] source: a file or byte stream for which load load into a virtual memory space
+ :param Union[str, bytes, bytearray, 'databuffer.DataBuffer', 'os.PathLike'] source: a file or byte stream for which load load into a virtual memory space
: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}
@@ -335,7 +335,7 @@ def open_view(*args, **kwargs) -> BinaryView:
.. 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 Union[str, 'os.PathLike'] 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}