@@ -71,6 +71,12 @@ def __init__(self, *args, **kwargs):
71
71
self .log .info ("Auto-enabling installation of fe-safe components for ABAQUS versions >= 2020" )
72
72
self .cfg ['with_fe_safe' ] = True
73
73
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
+
74
80
def extract_step (self ):
75
81
"""Use default extraction procedure instead of the one for the Binary easyblock."""
76
82
EasyBlock .extract_step (self )
@@ -353,20 +359,6 @@ def sanity_check_step(self):
353
359
354
360
super (EB_ABAQUS , self ).sanity_check_step (custom_paths = custom_paths , custom_commands = custom_commands )
355
361
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
-
370
362
def make_module_extra (self ):
371
363
"""Add LM_LICENSE_FILE path if specified"""
372
364
txt = super (EB_ABAQUS , self ).make_module_extra ()
0 commit comments