summaryrefslogtreecommitdiff
path: root/python/__init__.py
diff options
context:
space:
mode:
authorJordan Wiens <jordan@psifertex.com>2018-11-26 22:47:39 -0500
committerJordan Wiens <jordan@psifertex.com>2018-11-26 22:47:39 -0500
commit5f7f0c4624dc51e1ccc44eb839860e36490e54ce (patch)
tree5da8bb0bc80402b1073a7016ea1ca79b46d43c5f /python/__init__.py
parentd0fc9bbf30b0813e4f287035a207b6e40853f7c7 (diff)
convert core_serial, version, build_id ando thers to methods
Diffstat (limited to 'python/__init__.py')
-rw-r--r--python/__init__.py33
1 files changed, 30 insertions, 3 deletions
diff --git a/python/__init__.py b/python/__init__.py
index 9ee8f158..d155c331 100644
--- a/python/__init__.py
+++ b/python/__init__.py
@@ -230,21 +230,48 @@ def _init_plugins():
_destruct_callbacks = _DestructionCallbackHandler()
def bundled_plugin_path():
+ """
+ ``bundled_plugin_path`` returns a string containing the current plugin path inside the `install path <https://docs.binary.ninja/getting-started.html#binary-path>`_
+
+ :return: current bundled plugin path
+ :rtype: str, or None on failure
+ """
return core.BNGetBundledPluginDirectory()
def user_plugin_path():
+ """
+ ``user_plugin_path`` returns a string containing the current plugin path inside the `user directory <https://docs.binary.ninja/getting-started.html#user-folder>`_
+
+ :return: current user plugin path
+ :rtype: str, or None on failure
+ """
return core.BNGetUserPluginDirectory()
def core_version():
- '''Core version'''
+ """
+ ``core_version`` returns a string containing the current version
+
+ :return: current version
+ :rtype: str, or None on failure
+ """
return core.BNGetVersionString()
def core_build_id():
- '''Build ID'''
+ """
+ ``core_build_id`` returns a string containing the current build id
+
+ :return: current build id
+ :rtype: str, or None on failure
+ """
core.BNGetBuildId()
def core_serial():
- '''Serial Number'''
+ """
+ ``core_serial`` returns a string containing the current serial number
+
+ :return: current serial
+ :rtype: str, or None on failure
+ """
return core.BNGetSerialNumber()
def core_expires():