tcl module template: automatically unload automatically loaded modules (#32853)

Remove `module-info mode load` condition that prevents auto-unloading when autoloading is enabled. It looks like this condition was added to work around an issue in environment-modules that is no longer necessary.

Add quotes to make is-loaded happy
This commit is contained in:
Sergey Kosukhin
2022-10-06 20:15:28 +02:00
committed by GitHub
parent c3018f95ee
commit a520a7ef28
2 changed files with 2 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ proc ModulesHelp { } {
{% block autoloads %}
{% for module in autoload %}
if {{ '{' }} [ module-info mode load ] && ![ is-loaded {{ module }} ] {{ '}' }} {{ '{' }}
if {{ '{' }} ![ is-loaded '{{ module }}' ] {{ '}' }} {{ '{' }}
{% if verbose %}
puts stderr "Autoloading {{ module }}"
{% endif %}