From 450b82828a9d43ddcb266ebdfcd221b7d0784cbb Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Wed, 7 Apr 2021 13:00:47 -0400 Subject: adding user_directory() python api --- python/__init__.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'python/__init__.py') 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 `_ + + :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 -- cgit v1.3.1