summaryrefslogtreecommitdiff
path: root/lib/spack/spack/modules/__init__.py
blob: 76f63827d5c2643b379119c28bbc00858e5087fe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

"""This package contains code for creating environment modules, which can
include TCL non-hierarchical modules, LUA hierarchical modules, and others.
"""

from __future__ import absolute_import

from .common import disable_modules
from .lmod import LmodModulefileWriter
from .tcl import TclModulefileWriter

__all__ = [
    'TclModulefileWriter',
    'LmodModulefileWriter',
    'disable_modules'
]

module_types = {
    'tcl': TclModulefileWriter,
    'lmod': LmodModulefileWriter
}