diff options
| -rw-r--r-- | python/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/python/__init__.py b/python/__init__.py index b066e863..7f5206ff 100644 --- a/python/__init__.py +++ b/python/__init__.py @@ -19,6 +19,7 @@ # IN THE SOFTWARE. +import atexit # Binary Ninja components import _binaryninjacore as core from .enums import * @@ -58,6 +59,9 @@ def shutdown(): core.BNShutdown() +atexit.register(shutdown) + + def get_unique_identifier(): return core.BNGetUniqueIdentifierString() |
