summaryrefslogtreecommitdiff
path: root/python/pluginmanager.py
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2021-03-01 12:37:32 -0500
committerPeter LaFosse <peter@vector35.com>2021-03-02 07:50:56 -0500
commit653462c45373f0eb4205f7bd80c1f4a6db996bdb (patch)
tree3ca8e61ca4452b173e28ccd155a2c57139228bc9 /python/pluginmanager.py
parent7f3891533203f8bd33dae42d29496c4ba8b5cacf (diff)
pluginmanager fixes
Diffstat (limited to 'python/pluginmanager.py')
-rw-r--r--python/pluginmanager.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/python/pluginmanager.py b/python/pluginmanager.py
index b24ba7b6..1f38a386 100644
--- a/python/pluginmanager.py
+++ b/python/pluginmanager.py
@@ -59,6 +59,15 @@ class RepoPlugin(object):
"""Boolean True if the plugin is installed, False otherwise"""
return core.BNPluginIsInstalled(self.handle)
+ def install(self):
+ """Attempt to install the given plugin"""
+ self.install_dependencies()
+ return core.BNPluginInstall(self.handle)
+
+ def uninstall(self):
+ """Attempt to uninstall the given plugin"""
+ return core.BNPluginUninstall(self.handle)
+
@installed.setter
def installed(self, state):
if state: