uw.local.deploy package

Submodules

uw.local.deploy.environment module

Environment-related routines for system deployment.

This includes functions for combining environment settings from various sources and updating the OS environ accordingly.

uw.local.deploy.environment.combine_environment(*args)[source]

Combine environment settings from various sources.

Parameters

*args – Sources of environment settings, either a filename to parse or a dictionary of predetermined settings.

Returns

A dictionary of the combined settings.

Combine the given predetermined settings and settings parsed from the specified files into a single dictionary.

uw.local.deploy.environment.import_environment(*args)[source]

Update the OS environ from settings.

Parameters

*args – Sources of environment settings, either a filename to parse or a dictionary of predetermined settings.

Use combine_environment() to combine the sources and update the OS environ from the combined settings.

uw.local.deploy.environment.parse_environment(fp, fname)[source]

Parse a file for environment settings.

Parameters
  • fp – An iterable of text lines.

  • fname – The filename, for use in error reporting.

Returns

A dictionary of environment settings parsed from the file.

Module contents