SetEnvironment

RESOURCE

Abstract

SAND2025-11727O SetEnvironment software is a utility library module that uses ConfigParserEnhanced, also a library module, to read specifically formatted .ini files for setting the user's environment. It creates a consistent environment with an expected set of variables and module loads, which is important for testing. Environment variable operations include set, append, prepend, unset, remove, and others and uses the Python os.environ methods. The module operations are performed with a wrapper. Systems using the Lmod package can generate a module function, which can also perform module operations specified in the text file. Sandia National Laboratories is a multimission laboratory managed and operated by National Technology & Engineering Solutions of Sandia, LLC, a wholly owned subsidiary of Honeywell International Inc., for the U.S. Department of Energy’s National Nuclear Security Administration under contract DE-NA0003525.
Developers:
McLendon III, William [1][2][3] Gates, Jason [1][2][3] Harvey, Evan [1][2][3] Chauphan, Anderson [1][2][3]
  1. Sandia National Lab. (SNL-CA), Livermore, CA (United States)
  2. Sandia National Lab. (SNL-NM), Albuquerque, NM (United States)
  3. Sandia National Laboratories (SNL), Albuquerque, NM, and Livermore, CA (United States)
Release Date:
2024-08-03
Project Type:
Open Source, Publicly Available Repository
Software Type:
Scientific
Programming Languages:
Python
Version:
0.1.0
Licenses:
BSD 3-clause "New" or "Revised" License
Sponsoring Org.:
Code ID:
167230
Site Accession Number:
SCR #3019.0
Research Org.:
Sandia National Laboratories (SNL-NM), Albuquerque, NM (United States)
Country of Origin:
United States

RESOURCE

Citation Formats

McLendon III, William, Gates, Jason, Harvey, Evan, and Chauphan, Anderson. SetEnvironment. Computer Software. https://github.com/sandialabs/SetEnvironment. USDOE. 03 Aug. 2024. Web. doi:10.11578/dc.20251016.16.
McLendon III, William, Gates, Jason, Harvey, Evan, & Chauphan, Anderson. (2024, August 03). SetEnvironment. [Computer software]. https://github.com/sandialabs/SetEnvironment. https://doi.org/10.11578/dc.20251016.16.
McLendon III, William, Gates, Jason, Harvey, Evan, and Chauphan, Anderson. "SetEnvironment." Computer software. August 03, 2024. https://github.com/sandialabs/SetEnvironment. https://doi.org/10.11578/dc.20251016.16.
@misc{ doecode_167230,
title = {SetEnvironment},
author = {McLendon III, William and Gates, Jason and Harvey, Evan and Chauphan, Anderson},
abstractNote = {SAND2025-11727O SetEnvironment software is a utility library module that uses ConfigParserEnhanced, also a library module, to read specifically formatted .ini files for setting the user's environment. It creates a consistent environment with an expected set of variables and module loads, which is important for testing. Environment variable operations include set, append, prepend, unset, remove, and others and uses the Python os.environ methods. The module operations are performed with a wrapper. Systems using the Lmod package can generate a module function, which can also perform module operations specified in the text file. Sandia National Laboratories is a multimission laboratory managed and operated by National Technology & Engineering Solutions of Sandia, LLC, a wholly owned subsidiary of Honeywell International Inc., for the U.S. Department of Energy’s National Nuclear Security Administration under contract DE-NA0003525.},
doi = {10.11578/dc.20251016.16},
url = {https://doi.org/10.11578/dc.20251016.16},
howpublished = {[Computer Software] \url{https://doi.org/10.11578/dc.20251016.16}},
year = {2024},
month = {aug}
}