empyrean.default_data_dir

default_data_dir()[source]

Return the OS-appropriate XDG data directory empyrean uses by default.

Resolution order:

  1. EMPYREAN_DATA_DIR environment variable, if set.

  2. The OS XDG data location:

    • Linux: $XDG_DATA_HOME/empyrean/data/ (default ~/.local/share/empyrean/data/)

    • macOS: ~/Library/Application Support/empyrean/data/

    • Windows: %APPDATA%\empyrean\data\

Cheap to call — does not touch the filesystem.

Return type:

Path

Returns:

pathlib.Path – Path to the data directory.