Skip to content

📝 docs(appauthor): clarify None vs False on Windows#476

Merged
gaborbernat merged 2 commits intotox-dev:mainfrom
gaborbernat:docs/appauthor-none-vs-false
Apr 6, 2026
Merged

📝 docs(appauthor): clarify None vs False on Windows#476
gaborbernat merged 2 commits intotox-dev:mainfrom
gaborbernat:docs/appauthor-none-vs-false

Conversation

@gaborbernat
Copy link
Copy Markdown
Member

Windows users calling user_config_path("myapp") are surprised to get AppData/Local/myapp/myapp instead of AppData/Local/myapp. The appauthor parameter defaults to None, which falls back to appname, creating a doubled directory structure. This is intentional (following the Windows convention of grouping apps by publisher) but the previous docs only mentioned it in a single sentence buried in the appauthor docstring. 📋 Issue #471 reported this confusion.

The fix adds clear explanations across all four Diátaxis dimensions so users discover this behavior regardless of how they read the docs. The tutorial now calls it out right after the first Windows path example. A new how-to recipe shows all three appauthor variants side by side. The explanation section spells out the fallback logic in the Windows conventions. The parameter reference adds an explicit None example showing the doubled path. The API docstring also gains a .. note:: block.

Closes #471

Users were surprised that `user_config_path("myapp")` produces
`AppData/Local/myapp/myapp` on Windows. The `appauthor=None` default
falls back to `appname`, creating a doubled directory. This was
documented only in a brief sentence in the API docstring.

Added clear explanations across all four Diátaxis dimensions so users
discover this behavior regardless of how they read the docs: tutorial
note after the first Windows example, a how-to recipe with all three
variants, expanded explanation in the Windows conventions section, and
explicit `None` example in the parameter reference.

Ref: tox-dev#471
@gaborbernat gaborbernat requested a review from ofek as a code owner April 6, 2026 21:16
@gaborbernat gaborbernat added the documentation Improvements or additions to documentation label Apr 6, 2026
@gaborbernat gaborbernat merged commit 104d28b into tox-dev:main Apr 6, 2026
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

platformdirs: user_config_path returns two nested folders in Windows 11

1 participant