diff --git a/dosagelib/loader.py b/dosagelib/loader.py index f04f1615c..3c6630a9e 100644 --- a/dosagelib/loader.py +++ b/dosagelib/loader.py @@ -22,11 +22,11 @@ def get_plugin_modules(): @rtype: iterator of module """ prefix = plugin_package + "." - modules = [m[1] for m in pkgutil.iter_modules(plugin_path, prefix)] + modules = {m[1] for m in pkgutil.iter_modules(plugin_path, prefix)} for elm in _get_all_modules_pyinstaller(): if elm.startswith(prefix): - modules.append(elm) + modules.add(elm) for name in modules: try: