From 9ff3cfab728cf66177b903aaa0e9d63099da2c2d Mon Sep 17 00:00:00 2001 From: Caspar van Leeuwen Date: Tue, 2 Apr 2024 17:20:23 +0200 Subject: [PATCH] Account for the possibility that EESSI_PREFIX isn't set --- create_lmodsitepackage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/create_lmodsitepackage.py b/create_lmodsitepackage.py index cddb40da5c..30f11c9c6f 100755 --- a/create_lmodsitepackage.py +++ b/create_lmodsitepackage.py @@ -64,7 +64,7 @@ -- hook.register("load", arch_specific_load_hook) -- get path to to architecture independent SitePackage.lua - local prefixHostInjections = string.gsub(os.getenv('EESSI_PREFIX'), 'versions', 'host_injections') + local prefixHostInjections = string.gsub(os.getenv('EESSI_PREFIX') or "", 'versions', 'host_injections') local hostSitePackage = prefixHostInjections .. "/.lmod/SitePackage.lua" -- If the file exists, run it