resolve_core3_database_path

Documentation for eth_defi.core3.constants.resolve_core3_database_path function.

resolve_core3_database_path()

Resolve the Core3 DuckDB database path.

Core3 scripts share the same CORE3_DATABASE_PATH environment variable override. Keeping the resolver next to CORE3_DATABASE_PATH avoids each caller repeating the same environment lookup and path expansion logic.

Returns

Path from CORE3_DATABASE_PATH or the default Core3 DuckDB path.

Return type

pathlib.Path