dbprocessing.module.module

class dbprocessing.module.module(*args)[source]

Support for using/loading environment modules

__init__(*args)[source]

Commands are entered as args to this class then parsed

Parameters
argslist of str

Arguments passed straight through to module

Examples

>>> mod = module('load', 'icy')

Methods

get_env(*args)

Return a complete environment.

Attributes

classmethod get_env(*args)[source]

Return a complete environment.

Parameters
argslist of str

Arguments to pass direction to module command.

Returns
dict

Environment variables, starting with current environment and modified by the module commands. Suitable as env argument in subprocess.call().

env

Environment variables (dict)


Release: 0.1.0 Doc generation date: Feb 10, 2022