diff --git a/sloth/gui/labeltool.py b/sloth/gui/labeltool.py index 559bb91..bc3cd3b 100755 --- a/sloth/gui/labeltool.py +++ b/sloth/gui/labeltool.py @@ -14,6 +14,7 @@ from sloth.gui.annotationscene import * from sloth.gui.frameviewer import * from sloth.gui.controlbuttons import * from sloth.conf import config +from sloth.core.utils import import_callable from sloth import APP_NAME, ORGANIZATION_NAME, ORGANIZATION_DOMAIN, VERSION import okapy.videoio as okv @@ -61,6 +62,8 @@ class MainWindow(QMainWindow): # TODO clean up, make configurable self.plugins_ = [] for plugin in plugins: + if type(plugin) == str: + plugin = import_callable(plugin) p = plugin(self) self.plugins_.append(p) action = p.action() diff --git a/sloth/plugins/__init__.py b/sloth/plugins/__init__.py new file mode 100644 index 0000000..e69de29