#%Module 1.0
#
#  @FLAVOR@ module for use with 'environment-modules' package:
# 
proc ModulesHelp { } {
        global version modroot

        puts stderr "\tmodules - loads the modules software & application environment"
        puts stderr "\n\tThis adds $modroot/* to several of the"
        puts stderr "\tenvironment variables."
        puts stderr "\n\tVersion $version\n"
}

module-whatis   "loads the @FLAVOR@ environment"


# Define prefix so PATH and MANPATH can be updated.
setenv        @FLAVOR_UPPER@ @CMAKE_INSTALL_PREFIX@/@DEST_DATADIR_COMPS@
prepend-path  PATH          @CMAKE_INSTALL_PREFIX@/@DEST_BINDIR@
prepend-path  MANPATH       @CMAKE_INSTALL_PREFIX@/@DEST_DATADIR_DOC@/man

# Define PYTHONPATH to pick up NCrystal if McStas
if { "@FLAVOR@" == "mcstas"  } {
    prepend-path PYTHONPATH     @CMAKE_INSTALL_PREFIX@/@FLAVOR@/@MCCODE_VERSION@/share/NCrystal/python/
}

