From 1eafe9eeb83962071ecffaebb0bc98dc79f2f5c6 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Tue, 9 Feb 2021 20:39:28 -0500 Subject: Add ability to install python dependencies Refactor plugin repo loading into scripting provider. Find python binary for given python library --- python/pluginmanager.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'python/pluginmanager.py') diff --git a/python/pluginmanager.py b/python/pluginmanager.py index ea3440f3..a164c4f6 100644 --- a/python/pluginmanager.py +++ b/python/pluginmanager.py @@ -49,6 +49,11 @@ class RepoPlugin(object): """Relative path from the base of the repository to the actual plugin""" return core.BNPluginGetPath(self.handle) + @property + def dependencies(self): + """Dependencies required for installing this plugin""" + return core.BNPluginGetDependencies(self.handle) + @property def installed(self): """Boolean True if the plugin is installed, False otherwise""" @@ -61,6 +66,9 @@ class RepoPlugin(object): else: return core.BNPluginUninstall(self.handle) + def install_dependencies(self): + return core.BNPluginInstallDependencies(self.handle) + @property def enabled(self): """Boolean True if the plugin is currently enabled, False otherwise""" -- cgit v1.3.1