From 3f333752759b3e231a4817d6fb046d8cd4b19ba6 Mon Sep 17 00:00:00 2001 From: Kenneth Hoste Date: Wed, 11 Feb 2026 20:14:10 +0100 Subject: [PATCH] load list of modules in one go as opposed to running separate 'module load' commands for each of them --- easybuild/tools/modules.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/easybuild/tools/modules.py b/easybuild/tools/modules.py index 75fd040200..5515a8c84b 100644 --- a/easybuild/tools/modules.py +++ b/easybuild/tools/modules.py @@ -1127,8 +1127,8 @@ def load(self, modules, mod_paths=None, purge=False, init_env=None, allow_reload if not allow_reload: modules = set(modules) - set(self.loaded_modules()) - for mod in modules: - self.run_module('load', mod) + + self.run_module('load', *modules) def unload(self, modules, log_changes=True): """