Skip to content
Snippets Groups Projects
Commit 41f36511 authored by Massimiliano Culpo's avatar Massimiliano Culpo
Browse files

modules : added provenance comment in tcl header

parent 3959ca62
Branches
Tags
No related merge requests found
......@@ -45,6 +45,7 @@
import os.path
import re
import textwrap
import datetime
import llnl.util.tty as tty
import spack
......@@ -401,7 +402,7 @@ class TclModule(EnvModule):
autoload_format = ('if ![ is-loaded {module_file} ] {{\n'
' puts stderr "Autoloading {module_file}"\n'
' module load {module_file}\n'
'}}\n')
'}}\n\n')
prerequisite_format = 'prereq {module_file}\n'
......@@ -420,6 +421,12 @@ def use_name(self):
def header(self):
# TCL Modulefile header
header = '#%Module1.0\n'
header += '## Module file created by spack (https://github.com/LLNL/spack)'
header += ' on %s\n' % datetime.datetime.now()
header += '##\n'
header += '## %s\n' % self.spec.short_spec
header += '##\n'
# TODO : category ?
# Short description
if self.short_description:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment