From 1a4a0f56dc17e68e5743fa3a550b46992ec461e1 Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Thu, 15 Jul 2021 03:39:25 -0400 Subject: support for repository plugins loaded from a subdirectory --- python/pluginmanager.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'python/pluginmanager.py') diff --git a/python/pluginmanager.py b/python/pluginmanager.py index 15b98b55..31e63620 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 subdir(self): + """Optional sub-directory the plugin code lives in as a relative path from the plugin root""" + return core.BNPluginGetSubdir(self.handle) + @property def dependencies(self): """Dependencies required for installing this plugin""" -- cgit v1.3.1