From de60e9d5829c47f26c6dced63470bec69538dd34 Mon Sep 17 00:00:00 2001 From: Stephen Herbein Date: Wed, 1 Aug 2018 03:58:54 -0700 Subject: lmod: fix use of custom separator in prepend_path etc. (#8737) fixes #8736 --- share/spack/templates/modules/modulefile.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'share') diff --git a/share/spack/templates/modules/modulefile.lua b/share/spack/templates/modules/modulefile.lua index cf37595228..a8eae9bef1 100644 --- a/share/spack/templates/modules/modulefile.lua +++ b/share/spack/templates/modules/modulefile.lua @@ -73,11 +73,11 @@ end {% block environment %} {% for command_name, cmd in environment_modifications %} {% if command_name == 'PrependPath' %} -prepend_path("{{ cmd.name }}", "{{ cmd.value }}") +prepend_path("{{ cmd.name }}", "{{ cmd.value }}", "{{ cmd.separator }}") {% elif command_name == 'AppendPath' %} -append_path("{{ cmd.name }}", "{{ cmd.value }}") +append_path("{{ cmd.name }}", "{{ cmd.value }}", "{{ cmd.separator }}") {% elif command_name == 'RemovePath' %} -remove_path("{{ cmd.name }}", "{{ cmd.value }}") +remove_path("{{ cmd.name }}", "{{ cmd.value }}", "{{ cmd.separator }}") {% elif command_name == 'SetEnv' %} setenv("{{ cmd.name }}", "{{ cmd.value }}") {% elif command_name == 'UnsetEnv' %} -- cgit v1.2.3-70-g09d2