Skip to content

Commit 1acb45a

Browse files
committed
Switch to using prepend_paths instead of append_paths
1 parent 4652509 commit 1acb45a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

easybuild/framework/easyblock.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1447,12 +1447,12 @@ def make_module_extra(self, altroot=None, altversion=None):
14471447
self.cfg['prefer_ebpythonprefixes']
14481448

14491449
if len(python_paths) > 1 and not use_ebpythonprefixes:
1450-
raise EasyBuildError('Multiple python paths requires EBPYHONPREFIXES: ' + ', '.join(python_paths))
1450+
raise EasyBuildError('Multiple python paths requires EBPYTHONPREFIXES: ' + ', '.join(python_paths))
14511451
elif python_paths:
14521452
if use_ebpythonprefixes:
1453-
lines.append(self.module_generator.append_paths('EBPYHONPREFIXES', '.'))
1453+
lines.append(self.module_generator.prepend_paths('EBPYTHONPREFIXES', '.'))
14541454
else:
1455-
lines.append(self.module_generator.append_paths('PYTHONPATH', python_paths))
1455+
lines.append(self.module_generator.prepend_paths('PYTHONPATH', python_paths))
14561456

14571457
modloadmsg = self.cfg['modloadmsg']
14581458
if modloadmsg:

0 commit comments

Comments
 (0)