Skip to content

Commit

Permalink
Fix name EBPYTHONPREFIX to EBPYTHONPREFIXES which is used in sitecust…
Browse files Browse the repository at this point in the history
…omize.py
  • Loading branch information
Micket authored and C3SE "c3-builder" bot committed Apr 11, 2024
1 parent 85d3f18 commit ddaa144
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions easybuild/tools/module_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,8 @@ def update_paths(self, key, paths, prepend=True, allow_abs=False, expand_relpath
# replace with EBPYTHONPREFIX which is added to python sys path at runtime
if python_paths and build_option('prefer_ebpythonprefix_over_pythonpath'):
python_path = python_paths[0]
self.log.info("Replaced PYTHONPATH %s with EBPYTHONPREFIX", python_path)
ret = self._update_paths('EBPYTHONPREFIX', [''], prepend, allow_abs, expand_relpaths)
self.log.info("Replaced PYTHONPATH %s with EBPYTHONPREFIXES", python_path)
ret = self._update_paths('EBPYTHONPREFIXES', [''], prepend, allow_abs, expand_relpaths)
paths = [path for path in paths if path != python_path]
if paths:
ret += self._update_paths(key, paths, prepend, allow_abs, expand_relpaths)
Expand Down

0 comments on commit ddaa144

Please sign in to comment.