summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-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()