summaryrefslogtreecommitdiff
path: root/python/pluginmanager.py
diff options
context:
space:
mode:
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: