diff options
author | Massimiliano Culpo <massimiliano.culpo@googlemail.com> | 2016-04-10 13:21:41 +0200 |
---|---|---|
committer | Massimiliano Culpo <massimiliano.culpo@googlemail.com> | 2016-04-10 13:21:41 +0200 |
commit | a5a5dbc4081ca13f579dce111394fe77d2c54a53 (patch) | |
tree | c93ed0cdc34a061fa03dbc54626a0710fdd95491 | |
parent | 1714f410f056db92a6aa42e4cc0505e79e8817a4 (diff) | |
download | spack-a5a5dbc4081ca13f579dce111394fe77d2c54a53.tar.gz spack-a5a5dbc4081ca13f579dce111394fe77d2c54a53.tar.bz2 spack-a5a5dbc4081ca13f579dce111394fe77d2c54a53.tar.xz spack-a5a5dbc4081ca13f579dce111394fe77d2c54a53.zip |
tcl module file : added new-lines in autoload (per @glennpj bug report)
-rw-r--r-- | lib/spack/spack/modules.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/spack/spack/modules.py b/lib/spack/spack/modules.py index 747c0d3be5..291dd775c5 100644 --- a/lib/spack/spack/modules.py +++ b/lib/spack/spack/modules.py @@ -372,10 +372,10 @@ class TclModule(EnvModule): UnsetEnv: 'unsetenv {name}\n' } - autoload_format = ('if ![ is-loaded {module_file} ] {{' - ' puts stderr "Autoloading {module_file}"' - ' module load {module_file}' - '}}') + autoload_format = ('if ![ is-loaded {module_file} ] {{\n' + ' puts stderr "Autoloading {module_file}"\n' + ' module load {module_file}\n' + '}}\n') prerequisite_format = 'prereq {module_file}\n' |