Environment Control

class ornithology.SetEnv(mapping)[source]

A context manager for setting environment variables. Inside the context manager’s block, the environment is updated according to the mapping. When the block ends, the environment is reset to whatever it was before entering the block.

If you need to change the CONDOR_CONFIG, use the specialized SetCondorConfig().

class ornithology.SetCondorConfig(config_file)[source]

A context manager. Inside the block, the Condor config file is the one given to the constructor. After the block, it is reset to whatever it was before the block was entered.