From 14c956520f27894d2279847452e19e54a8711d45 Mon Sep 17 00:00:00 2001 From: Flip Phillips Date: Fri, 1 Dec 2023 15:51:15 -0500 Subject: [PATCH] temp fix for redundant modules due to .load strat --- dotbot/cli.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dotbot/cli.py b/dotbot/cli.py index f421003..bb393b5 100644 --- a/dotbot/cli.py +++ b/dotbot/cli.py @@ -130,7 +130,9 @@ def main(): plugin_paths.append(plugin_path) for plugin_path in plugin_paths: abspath = os.path.abspath(plugin_path) - plugins.extend(module.load(abspath)) + plugins_set = set(plugins) + plugins_set.update(module.load(abspath)) + plugins = list(plugins_set) if not options.config_file: log.error("No configuration file specified") exit(1)