parse_path_env

Documentation for eth_defi.tokenised_fund.securitize.backfill.parse_path_env function.

parse_path_env(name, default)

Read a filesystem override while retaining production defaults.

Isolated test runs use this to keep state files out of the normal vault pipeline directory.

Parameters
  • name (str) – Environment variable holding a path.

  • default (pathlib.Path) – Default production path.

Returns

Expanded configured path.

Return type

pathlib.Path