Skip to content

Commit

Permalink
Merge pull request #4 from boegel/clang-toolchains
Browse files Browse the repository at this point in the history
add remove_module definition
  • Loading branch information
gribozavr committed Apr 13, 2013
2 parents cd4635e + 6e8bae2 commit 0eb510a
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 0eb510a

Please sign in to comment.