Skip to content

Commit 0079b39

Browse files
committed
replace make_module_req_guess with module_load_environment in abaqus easyblock
1 parent e0de69f commit 0079b39

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

easybuild/easyblocks/a/abaqus.py

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ def __init__(self, *args, **kwargs):
7171
self.log.info("Auto-enabling installation of fe-safe components for ABAQUS versions >= 2020")
7272
self.cfg['with_fe_safe'] = True
7373

74+
# add custom paths to $PATH
75+
path_subdirs = ['Commands']
76+
if self.cfg['with_tosca']:
77+
path_subdirs.append(os.path.join('cae', 'linux_a64', 'code', 'command'))
78+
self.module_load_environment.PATH.extend(path_subdirs)
79+
7480
def extract_step(self):
7581
"""Use default extraction procedure instead of the one for the Binary easyblock."""
7682
EasyBlock.extract_step(self)
@@ -353,20 +359,6 @@ def sanity_check_step(self):
353359

354360
super(EB_ABAQUS, self).sanity_check_step(custom_paths=custom_paths, custom_commands=custom_commands)
355361

356-
def make_module_req_guess(self):
357-
"""Update $PATH guesses for ABAQUS."""
358-
guesses = super(EB_ABAQUS, self).make_module_req_guess()
359-
360-
path_subdirs = ['Commands']
361-
if self.cfg['with_tosca']:
362-
path_subdirs.append(os.path.join('cae', 'linux_a64', 'code', 'command'))
363-
364-
guesses.update({
365-
'PATH': path_subdirs,
366-
})
367-
368-
return guesses
369-
370362
def make_module_extra(self):
371363
"""Add LM_LICENSE_FILE path if specified"""
372364
txt = super(EB_ABAQUS, self).make_module_extra()

0 commit comments

Comments
 (0)