FIX: hardcode user path in lua module extension

This commit is contained in:
svcusr-spack (Resp. Germann Elsa Sylvia)
2025-03-20 15:54:23 +01:00
parent 24cbe4db11
commit 5aafd5e07a

View File

@ -1,7 +1,7 @@
{% extends "modules/modulefile.lua" %}
{% block footer %}
local user_module_root= pathJoin(os.getenv("SPACK_ROOT"), "../user", os.getenv("USER"), "spack-install/modulefiles")
local user_module_root= pathJoin("/afs/psi.ch/sys/spack/user", os.getenv("USER"), "spack-install/modulefiles")
{% if 'mpi' in provides %}
local user_projection= "{{ spec.architecture }}/{{ spec.name }}/{{ version_part }}/{{ spec.compiler.name }}/{{ spec.compiler.version }}"