HWRF
trunk@4391
|
returns environment variables, allowing substitutions More...
returns environment variables, allowing substitutions
This class is used to read (but not write) environment variables and provide default values if an environment variable is unset or blank. It is only meant to be used in string formats, by passing ENV=ENVIRONMENT. There is a global constant in this module, ENVIRONMENT, which is an instance of this class. You should never need to instantiate another one.
Public Member Functions | |
def | __contains__ (self, s) |
Determines if getitem will return something (True) or raise KeyError (False). More... | |
def | __getitem__ (self, s) |
Same as os.environ[s] unless s contains "|-". More... | |
def hwrf.config.Environment.__contains__ | ( | self, | |
s | |||
) |
def hwrf.config.Environment.__getitem__ | ( | self, | |
s | |||
) |