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"