summaryrefslogtreecommitdiff
path: root/python/pluginmanager.py
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2021-02-09 20:39:28 -0500
committerPeter LaFosse <peter@vector35.com>2021-03-02 07:50:56 -0500
commit1eafe9eeb83962071ecffaebb0bc98dc79f2f5c6 (patch)
treef242857ceffdf76576bb87745cf096ffefc71b93 /python/pluginmanager.py
parentc07fe0fea819f681621ff60e336f079494f6bfef (diff)
Add ability to install python dependencies
Refactor plugin repo loading into scripting provider. Find python binary for given python library
Diffstat (limited to 'python/pluginmanager.py')
-rw-r--r--python/pluginmanager.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/python/pluginmanager.py b/python/pluginmanager.py
index ea3440f3..a164c4f6 100644
--- a/python/pluginmanager.py
+++ b/python/pluginmanager.py
@@ -50,6 +50,11 @@ class RepoPlugin(object):
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"""
return core.BNPluginIsInstalled(self.handle)
@@ -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"""