Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: tox-dev/platformdirs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 4.7.0
Choose a base ref
...
head repository: tox-dev/platformdirs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 4.7.1
Choose a head ref
  • 2 commits
  • 3 files changed
  • 2 contributors

Commits on Feb 13, 2026

  1. 🐛 fix(windows): avoid FileNotFoundError in sandboxed environments (#422)

    * 🐛 fix(windows): pass KF_FLAG_DONT_VERIFY to SHGetKnownFolderPath
    
    SHGetKnownFolderPath with default flags (0) verifies that the target
    folder physically exists, raising FileNotFoundError in sandboxed
    Windows environments where USERPROFILE points to a directory without
    AppData\Local. This was a regression introduced in 4.7.0 when PR #380
    replaced SHGetFolderPathW with SHGetKnownFolderPath.
    
    Passing KF_FLAG_DONT_VERIFY (0x00004000) restores the pre-4.7.0
    behavior of returning the expected path without existence checks,
    matching how the old SHGetFolderPathW API worked.
    
    Closes #421
    
    Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
    
    * test(windows): use real ctypes on Windows CI
    
    On Windows, call get_win_folder_via_ctypes with the real Windows API for
    each CSIDL name to verify integration. Reserve mock-based tests for
    non-Windows where ctypes Windows bindings don't exist.
    
    * fix(tests): resolve unused type-ignore warnings on Windows
    
    Move ctypes.WinDLL mock assignment into _setup_ctypes_mocks so the
    type: ignore comment only exists in one place that ty can reason about.
    
    ---------
    
    Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
    gaborbernat authored Feb 13, 2026
    Configuration menu
    Copy the full SHA
    fe5bf83 View commit details
    Browse the repository at this point in the history
  2. Release 4.7.1

    gaborbernat committed Feb 13, 2026
    Configuration menu
    Copy the full SHA
    77bcd60 View commit details
    Browse the repository at this point in the history
Loading