summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJordan Wiens <jordan@psifertex.com>2021-04-07 13:00:47 -0400
committerJordan Wiens <jordan@psifertex.com>2021-04-07 13:00:47 -0400
commit450b82828a9d43ddcb266ebdfcd221b7d0784cbb (patch)
treed506b909ccfcf1d47722d1edf5fb7cd7ad0e2a15 /python
parent07d24ce9db65eff8a17c05034cbac165be2c037c (diff)
adding user_directory() python api
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 cb8bc555..5dce604b 100644
--- a/python/__init__.py
+++ b/python/__init__.py
@@ -155,6 +155,15 @@ def user_plugin_path():
"""
return core.BNGetUserPluginDirectory()
+def user_directory():
+ """
+ ``user_directory`` returns a string containing the path to the `user directory <https://docs.binary.ninja/getting-started.html#user-folder>`_
+
+ :return: current user path
+ :rtype: str, or None on failure
+ """
+ return core.BNGetUserDirectory()
+
def core_version():
"""
``core_version`` returns a string containing the current version