parameters: (value, environment)
docstring: Resolves environment variables embedded in the given value.
docstring_summary: Resolves environment variables embedded in the given value.
docstring_tokens: Resolves environment variables embedded in the given value .
function: def Resolve(value, environment):
    """Resolves environment variables embedded in the given value."""
    outer_env = os.environ
    try:
      os.environ = environment
      return os.path.expandvars(value)
    finally:
      os.environ = outer_env
function_tokens: def Resolve ( value , environment ) : outer_env = os . environ try : os . environ = environment return os . path . expandvars ( value ) finally : os . environ = outer_env