diff options
Diffstat (limited to 'share')
-rw-r--r-- | share/spack/templates/modules/modulefile.tcl | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/share/spack/templates/modules/modulefile.tcl b/share/spack/templates/modules/modulefile.tcl index de8d9e29bb..be53856ba7 100644 --- a/share/spack/templates/modules/modulefile.tcl +++ b/share/spack/templates/modules/modulefile.tcl @@ -41,8 +41,6 @@ conflict {{ name }} {% block environment %} {% for command_name, cmd in environment_modifications %} -{% if cmd.separator != ':' %} -{# A non-standard separator is required #} {% if command_name == 'PrependPath' %} prepend-path --delim "{{ cmd.separator }}" {{ cmd.name }} "{{ cmd.value }}" {% elif command_name == 'AppendPath' %} @@ -50,25 +48,11 @@ append-path --delim "{{ cmd.separator }}" {{ cmd.name }} "{{ cmd.value }}" {% elif command_name == 'RemovePath' %} remove-path --delim "{{ cmd.separator }}" {{ cmd.name }} "{{ cmd.value }}" {% elif command_name == 'SetEnv' %} -setenv --delim "{{ cmd.separator }}" {{ cmd.name }} "{{ cmd.value }}" -{% elif command_name == 'UnsetEnv' %} -unsetenv {{ cmd.name }} -{% endif %} -{% else %} -{# We are using the usual separator #} -{% if command_name == 'PrependPath' %} -prepend-path {{ cmd.name }} "{{ cmd.value }}" -{% elif command_name == 'AppendPath' %} -append-path {{ cmd.name }} "{{ cmd.value }}" -{% elif command_name == 'RemovePath' %} -remove-path {{ cmd.name }} "{{ cmd.value }}" -{% elif command_name == 'SetEnv' %} setenv {{ cmd.name }} "{{ cmd.value }}" {% elif command_name == 'UnsetEnv' %} unsetenv {{ cmd.name }} {% endif %} {# #} -{% endif %} {% endfor %} {% endblock %} |