pypi / platformdirs
platformdirs
What changed in platformdirs 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.
2 breaking3 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initplatformdirs 45 changes
Breaking changes 2
Raises RuntimeError when the home directory cannot be resolved instead of returning paths rooted at a literal
~.Raises RuntimeError when the home directory cannot be resolved instead of returning a path rooted at a literal
~.
Fixes and other changes 3
Android app directories are located from sys.path only when it contains a complete files path segment.
Keeps user directory strings, paths, and iterators consistent when Unix root enables use_site_for_root, and restores root redirection when the context exits.
Normalizes user_fonts_dir when XDG_DATA_HOME ends with a separator.