Crombie Tools
CrombieTools.LoadConfig Namespace Reference

Functions

def LoadEnv (configs)
 
def LoadModuleFromEnv (EnvVarName)
 

Variables

 CrombieConfigs
 
 cuts
 

Detailed Description

@file LoadConfig.py
Defines the CrombieTools.LoadConfig package
@author Daniel Abercrombie <dabercro@mit.edu>

@package CrombieTools.LoadConfig
Package that loads local [configuration files](@ref envconfig) into environment.

Function Documentation

§ LoadEnv()

def CrombieTools.LoadConfig.LoadEnv (   configs)
Sources bash files and loads the resulting environment into os.environ

@param configs is a list of file names that should be searched for.
A string for a single configuration file is also accepted.

Definition at line 13 of file LoadConfig.py.

References run.strip.

§ LoadModuleFromEnv()

def CrombieTools.LoadConfig.LoadModuleFromEnv (   EnvVarName)
Loads and returns a python file named in the environment as a module.

@param EnvVarName is an environment variable containing the name of a local .py file.
@returns the module handler from importing the .py file.

Definition at line 42 of file LoadConfig.py.

References run.strip.

Variable Documentation

§ CrombieConfigs

CrombieTools.LoadConfig.CrombieConfigs

Definition at line 55 of file LoadConfig.py.

§ cuts