summaryrefslogtreecommitdiff
path: root/lib/spack/spack/modules/__init__.py
blob: e9049a43bb97747bbcf33bab3a2a2768c7aa7aa3 (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
# Copyright 2013-2023 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, ensure_modules_are_enabled_or_warn
from .lmod import LmodModulefileWriter
from .tcl import TclModulefileWriter

__all__ = [
    "TclModulefileWriter",
    "LmodModulefileWriter",
    "disable_modules",
    "ensure_modules_are_enabled_or_warn",
]

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