pub fn datadir() -> Result<PathBuf>Expand description
Get directory where astronomy data is stored
Tries the following paths in order, and stops when the files are found
- “SATKIT_DATA” environment variable
- ${DYLIB}/satkit-data where ${DYLIB} is directory containing the compiled library
- ${SITE_PACKAGES}/satkit_data/data where ${SITE_PACKAGES} is the parent of ${DYLIB} (for the satkit_data pip package)
- ${HOME}/Library/Application Support/satkit-data (on MacOS only)
- ${HOME}/.satkit-data
- /usr/share/satkit-data
- /Library/Application Support/satkit-data (on MacOS only)
Returns:
- Result<std::path::PathBuf> representing directory where files are stored