From 624c766a7dae005fcceba6d0b2340a4559667de0 Mon Sep 17 00:00:00 2001 From: "Sloan D. Mergler" Date: Sun, 14 Jul 2024 00:08:06 -0400 Subject: [PATCH] Only load default plugins when necessary --- if.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/if.py b/if.py index 9b424b6..57eb5ac 100644 --- a/if.py +++ b/if.py @@ -5,7 +5,6 @@ import dotbot from dotbot.dispatcher import Dispatcher from dotbot.util import module -from dotbot.plugins import Clean, Create, Link, Shell class If(dotbot.Plugin): @@ -49,6 +48,7 @@ def _load_plugins(self): abspath = os.path.abspath(path) plugins.extend(module.load(abspath)) if not self._context.options().disable_built_in_plugins: + from dotbot.plugins import Clean, Create, Link, Shell plugins.extend([Clean, Create, Link, Shell]) return plugins