diff --git a/easybuild/tools/modules.py b/easybuild/tools/modules.py index 3e9d84413c..0a46058e2d 100644 --- a/easybuild/tools/modules.py +++ b/easybuild/tools/modules.py @@ -180,6 +180,13 @@ def add_module(self, modules): self.log.warning('More then one module found for %s: %s' % (mod, mods)) continue + def remove_module(self, modules): + """ + Remove modules from list. + """ + for mod in modules: + self.modules = [m for m in self.modules if not m == mod] + def load(self): """ Load all requested modules.