diff options
author | Stephen Herbein <SteVwonder@users.noreply.github.com> | 2018-08-01 03:58:54 -0700 |
---|---|---|
committer | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2018-08-01 12:58:54 +0200 |
commit | de60e9d5829c47f26c6dced63470bec69538dd34 (patch) | |
tree | 79c45f48fcba124356f380c65b3b2f62eaa1fb33 /share | |
parent | db79c86ed60db084033b160b64e94e23beb5f0cb (diff) | |
download | spack-de60e9d5829c47f26c6dced63470bec69538dd34.tar.gz spack-de60e9d5829c47f26c6dced63470bec69538dd34.tar.bz2 spack-de60e9d5829c47f26c6dced63470bec69538dd34.tar.xz spack-de60e9d5829c47f26c6dced63470bec69538dd34.zip |
lmod: fix use of custom separator in prepend_path etc. (#8737)
fixes #8736
Diffstat (limited to 'share')
-rw-r--r-- | share/spack/templates/modules/modulefile.lua | 6 |
1 files changed, 3 insertions, 3 deletions
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' %} |