Skip to content

Commit f3ce86e

Browse files
committed
resolve search paths in fake modules in the same way as regular modules
1 parent faf0720 commit f3ce86e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

easybuild/framework/easyblock.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1637,7 +1637,7 @@ def make_module_group_check(self):
16371637

16381638
return txt
16391639

1640-
def make_module_req(self, fake=False):
1640+
def make_module_req(self):
16411641
"""
16421642
Generate the environment-variables required to run the module.
16431643
"""
@@ -1678,11 +1678,10 @@ def make_module_req(self, fake=False):
16781678
mod_lines.append(self.module_generator.comment(note))
16791679

16801680
for env_var, search_paths in env_var_requirements.items():
1681-
if self.dry_run or fake:
1681+
if self.dry_run:
16821682
# Don't expand globs or do any filtering for dry run
16831683
mod_req_paths = search_paths
1684-
if self.dry_run:
1685-
self.dry_run_msg(f" ${env_var}:{', '.join(mod_req_paths)}")
1684+
self.dry_run_msg(f" ${env_var}:{', '.join(mod_req_paths)}")
16861685
else:
16871686
mod_req_paths = [
16881687
expanded_path for unexpanded_path in search_paths
@@ -4037,7 +4036,7 @@ def make_module_step(self, fake=False):
40374036
txt += self.make_module_deppaths()
40384037
txt += self.make_module_dep()
40394038
txt += self.make_module_extend_modpath()
4040-
txt += self.make_module_req(fake=fake)
4039+
txt += self.make_module_req()
40414040
txt += self.make_module_extra()
40424041
txt += self.make_module_footer()
40434042

0 commit comments

Comments
 (0)