Skip to main content

get_data_dir

Function
This function is defined in the paths module.
Get PraisonAI data directory. Priority:
  1. PRAISONAI_HOME env var
  2. ~/.praisonai/ (existing install)
  3. ~/.praison/ (legacy fallback with warning)
  4. $XDG_DATA_HOME/praisonai (only when XDG_DATA_HOME is explicitly set and no legacy root exists)
  5. ~/.praisonai/ (default for fresh installs)

Signature

Returns

Path
Path to data directory

Usage

Uses

  • expanduser
  • Path
  • Path.home
  • new_path.exists
  • legacy_path.exists
  • warn_deprecated_param
  • isabs

Used By

Source

View on GitHub

praisonaiagents/paths.py at line 126