Started changing the find in modules method written by Todd
This commit is contained in:
parent
06fe879745
commit
b6d2a12ceb
1 changed files with 5 additions and 3 deletions
|
@ -272,9 +272,11 @@ def find_in_modules(cls):
|
|||
if cls.PrgEnv:
|
||||
if not cls.PrgEnv_compiler:
|
||||
tty.die('Must supply PrgEnv_compiler with PrgEnv')
|
||||
|
||||
output = _shell('module avail %s' % cls.PrgEnv_compiler)
|
||||
matches = re.findall(r'(%s)/([^\s(]*)' % cls.PrgEnv_compiler, output)
|
||||
|
||||
loaded_modules = os.environ["LOADEDMODULES"].split(":")
|
||||
#output = _shell('module avail %s' % cls.PrgEnv_compiler)
|
||||
for module in loaded_modules:
|
||||
match = re.findall(r'(%s)/([^\s(]*)' % cls.PrgEnv_compiler, module)
|
||||
|
||||
for name, version in matches:
|
||||
v = version + '-craype'
|
||||
|
|
Loading…
Reference in a new issue