github tox-dev/platformdirs 4.11.5

latest releases: 4.14.9, 4.14.8, 4.14.7...
3 months ago

Features

  • Give user_preference_dir and user_preference_path the same arguments as user_config_dir. The functions were introduced in 4.10.0 without arguments, so they could only return the unscoped base directory even though the property they wrap appends the app name and version. #491 #531 by @gaborbernat and @dylanpulver.
  • Give user_applications_dir, user_applications_path, site_applications_dir and site_applications_path the app arguments. Android scopes both applications directories to the app, so without them the functions could only return the unscoped base directory there. On the two site functions they are keyword-only, keeping multipath first positional as it has been since 4.9.0; the two user functions take their boolean options keyword-only. #534 by @gaborbernat.

Bug fixes

  • Make site_applications_path return the first entry when multipath=True, matching site_data_path. On Unix and macOS it passed the whole $XDG_DATA_DIRS list to Path, giving one unusable path such as /first/applications:/second/applications. #532 by @tunglambk and @gaborbernat.

Documentation

  • Correct the ordering note on the iterator methods. use_site_for_root drops the user directory entirely, so the iterators are documented as yielding the most specific directory first rather than always yielding the user one. #533 by @gaborbernat.

New Contributors

🐍 PyPI release

📜 Full Changelog

Don't miss a new platformdirs release

NewReleases is sending notifications on new releases.