diff mbox series

[5/7] devtool: un-globalize 'plugins' variable

Message ID 20250112145359.607585-6-chris.laplante@agilent.com
State New
Headers show
Series De-globalization of 'devtool' | expand

Commit Message

chris.laplante@agilent.com Jan. 12, 2025, 2:53 p.m. UTC
From: Chris Laplante <chris.laplante@agilent.com>

It never had to be a global anyway

Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
---
 scripts/devtool | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/scripts/devtool b/scripts/devtool
index d96d25a51a..b43a958497 100755
--- a/scripts/devtool
+++ b/scripts/devtool
@@ -28,8 +28,6 @@  import scriptutils
 import argparse_oe
 logger = scriptutils.logger_create('devtool')
 
-plugins = []
-
 
 class ConfigHandler:
     basepath = None
@@ -302,6 +300,7 @@  def main():
 
     context = Context(fixed_setup=False, config=config, pluginpaths=pluginpaths)
 
+    plugins = []
     for pluginpath in pluginpaths:
         scriptutils.load_plugins(logger, plugins, pluginpath)