polywrap_core.utils.get_env_from_resolution_path module

This module contains the utility function for getting the env from the URI history.

polywrap_core.utils.get_env_from_resolution_path.get_env_from_resolution_path(uri_history: List[Uri], client: Client) Any | None[source]

Get environment variable from URI resolution history.

Parameters:
  • uri_history (List[Uri]) – List of URIs from the URI resolution history

  • client (Client) – Polywrap client instance to use for getting the env by URI

Returns:

env if found, None otherwise