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 --- pluginmanager.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'pluginmanager.cpp') diff --git a/pluginmanager.cpp b/pluginmanager.cpp index 8f57f2f8..049555be 100644 --- a/pluginmanager.cpp +++ b/pluginmanager.cpp @@ -20,6 +20,11 @@ string RepoPlugin::GetPath() const RETURN_STRING(BNPluginGetPath(m_object)); } +string RepoPlugin::GetDependencies() const +{ + RETURN_STRING(BNPluginGetDependencies(m_object)); +} + bool RepoPlugin::IsInstalled() const { return BNPluginIsInstalled(m_object); @@ -214,6 +219,12 @@ bool RepoPlugin::Install() } +bool RepoPlugin::InstallDependencies() +{ + return BNPluginInstallDependencies(m_object); +} + + bool RepoPlugin::Enable(bool force) { return BNPluginEnable(m_object, force); -- cgit v1.3.1