Skip to content

Commit

Permalink
add remove_module definition
Browse files Browse the repository at this point in the history
  • Loading branch information
boegel committed Apr 13, 2013
1 parent adbf2df commit 6e8bae2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions easybuild/tools/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6e8bae2

Please sign in to comment.