get_data_home
Note
This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the Habitat Guide and Python API guide (v2.0) for usage.
- get_data_home(data_home: str | Path | None = None) Path[source]
Return the cache directory for downloaded HABIT demo packs.
Resolution order: the
data_homeargument, then theHABIT_DATAenvironment variable, then~/.habit_data. The directory is created if it does not exist.- Parameters:
data_home – Optional override for the cache root.
- Returns:
Absolute cache root.