📝 docs(windows): document Store Python sandbox path behavior#423
Merged
gaborbernat merged 1 commit intotox-dev:mainfrom Feb 13, 2026
Merged
📝 docs(windows): document Store Python sandbox path behavior#423gaborbernat merged 1 commit intotox-dev:mainfrom
gaborbernat merged 1 commit intotox-dev:mainfrom
Conversation
Windows Store Python (MSIX) uses kernel-level filesystem virtualization that redirects AppData writes to a per-package sandbox location. This causes confusion when paths returned by platformdirs are passed to external processes that run outside the sandbox. The returned logical paths are correct for the calling process, so this is not something platformdirs should resolve. Added a note explaining the behavior and the os.path.realpath() workaround for cross-process path sharing. Closes tox-dev#90
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Windows Store Python (MSIX) uses kernel-level AppContainer filesystem virtualization that silently redirects
AppDatawrites to a per-package sandbox location. This has been a source of confusion (issue #90) when paths returned byplatformdirsare passed to external processes running outside the sandbox — they resolve to a different physical location.After investigating the CPython docs and Microsoft's MSIX internals, the returned logical paths are the correct answer for the calling process. The redirection is not done via symlinks or reparse points (which
os.path.realpathresolves on 3.8+), but via OS-level write virtualization. This meansplatformdirscannot and should not try to resolve these paths — doing so would break the standard non-Store case and has no reliable API.A note was added to the Windows section of the platforms documentation explaining the behavior and providing the
os.path.realpath()workaround for users who need to share paths with external processes.Closes #90.