summaryrefslogtreecommitdiff
path: root/python/__init__.py
diff options
context:
space:
mode:
authorJordan Wiens <jordan@psifertex.com>2017-02-23 02:20:55 -0500
committerJordan Wiens <jordan@psifertex.com>2017-02-23 02:20:55 -0500
commit57088dfd10ebbc5361e1493c034dec8ed6730bdc (patch)
tree10c598911652c13d56b1ef436f5daaee98323f2d /python/__init__.py
parent33ae06ad9a4dfe1e78467ebf7f82a4c95f8945eb (diff)
add get_install_directory and savelastrun to the api
Diffstat (limited to 'python/__init__.py')
-rw-r--r--python/__init__.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/python/__init__.py b/python/__init__.py
index b1f5cd08..dcbb8276 100644
--- a/python/__init__.py
+++ b/python/__init__.py
@@ -58,6 +58,15 @@ def get_unique_identifier():
return core.BNGetUniqueIdentifierString()
+def get_install_directory():
+ """
+ ``get_install_directory`` returns a string pointing to the installed binary currently running
+
+ .warning:: ONLY for use within the Binary Ninja UI, behavior is undefined and unreliable if run headlessly
+ """
+ return core.BNGetInstallDirectory()
+
+
class _DestructionCallbackHandler(object):
def __init__(self):
self._cb = core.BNObjectDestructionCallbacks()