Skip to content

Commit 5c85b38

Browse files
committed
EESSI_INIT_PREFIX for overriding location of EB hooks
1 parent 5a99ee0 commit 5c85b38

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

EESSI-extend-easybuild.eb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,8 @@ end
176176
setenv ("EASYBUILD_SYSROOT", sysroot)
177177
setenv ("EASYBUILD_PREFIX", pathJoin(working_dir, "easybuild"))
178178
setenv ("EASYBUILD_INSTALLPATH", easybuild_installpath)
179-
setenv ("EASYBUILD_HOOKS", pathJoin(os.getenv("EESSI_PREFIX"), "init", "easybuild", "eb_hooks.py"))
179+
eessi_init_prefix = os.getenv("EESSI_INIT_PREFIX") or pathJoin(os.getenv("EESSI_PREFIX"), "init")
180+
setenv ("EASYBUILD_HOOKS", pathJoin(eessi_init_prefix, "easybuild", "eb_hooks.py"))
180181
181182
-- Make sure to use the general umask that allows a global read
182183
setenv ("EASYBUILD_UMASK", "022")

0 commit comments

Comments
 (0)