diff options
| author | Peter LaFosse <peter@vector35.com> | 2021-09-30 14:24:58 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2021-09-30 14:24:58 -0400 |
| commit | 5a2c02eea3ac4efe9d2ceca79764508370b8ae88 (patch) | |
| tree | ea3ad1599e220faf9117d81c4ee697ddd3ccd1c3 /python/binaryview.py | |
| parent | 0697899324fb41d92cc1179a7b0035abdf0bb4a3 (diff) | |
Add BinaryView.libraries api to list used libraries
Diffstat (limited to 'python/binaryview.py')
| -rw-r--r-- | python/binaryview.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/python/binaryview.py b/python/binaryview.py index a92479f3..fe525bec 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -7129,6 +7129,12 @@ class BinaryView: def writer(self, address:Optional[int]=None) -> 'BinaryWriter': return BinaryWriter(self, address=address) + @property + def libraries(self) -> List[str]: + try: + return self.query_metadata("Libraries") + except KeyError: + return [] class BinaryReader: """ |
