From ca88fb07852242d3554f961fb88cfb50e4d1000a Mon Sep 17 00:00:00 2001 From: Caspar van Leeuwen Date: Tue, 26 Aug 2025 11:23:50 +0200 Subject: [PATCH] Fix host injection path, it was still pointing to .../versions/... instead of .../host_injections/... --- create_lmodsitepackage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/create_lmodsitepackage.py b/create_lmodsitepackage.py index 996575f1..74758858 100755 --- a/create_lmodsitepackage.py +++ b/create_lmodsitepackage.py @@ -132,7 +132,8 @@ -- get the host_injections path, and add only the EESSI_CPU_FAMILY at the end local strip_suffix = os.getenv('EESSI_VERSION') .. "/software/" .. os.getenv('EESSI_OS_TYPE') .. "/" strip_suffix = strip_suffix .. os.getenv('EESSI_SOFTWARE_SUBDIR') - local hostInjections = string.gsub(os.getenv('EESSI_SOFTWARE_PATH') or "", strip_suffix, os.getenv('EESSI_CPU_FAMILY')) + local hostInjections = string.gsub(os.getenv('EESSI_SOFTWARE_PATH') or "", 'versions', 'host_injections') + hostInjections = string.gsub(hostInjections, strip_suffix, os.getenv('EESSI_CPU_FAMILY')) -- build final path where the software should be installed local packageEasyBuildDir = hostInjections .. "/software/" .. t.modFullName .. "/easybuild"