This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author stephtr
Recipients stephtr
Date 2020-04-24.13:25:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1587734754.85.0.727792315124.issue40377@roundup.psfhosted.org>
In-reply-to
Content
In Microsoft Store apps, access to %APPDATA% and %LOCALAPPDATA% gets transparently redirected to an app specific location (such as %LOCALAPPDATA%\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\). This is perfect for saving settings etc. of Python scripts and packages, however that doesn't work, when the unredirected paths are returned by a sandboxed Python script and consumed by a 3rd party tool.
One example for the issue created by that is Jupyter, which saves its kernel settings to %appdata% and returns that path when using the command `jupyter kernelspec list`. However other applications which rely on that output can't access the resulting paths (since their file access doesn't get redirected).
Would it make sense to add some API for accessing the UWP APIs ApplicationData.Current.LocalFolder and ApplicationData.Current.RoamingFolder, which provide a folder path, which doesn't get redirected?

Besides, I want to thank everyone involved in the Microsoft Store version of Python!
History
Date User Action Args
2020-04-24 13:25:54stephtrsetrecipients: + stephtr
2020-04-24 13:25:54stephtrsetmessageid: <1587734754.85.0.727792315124.issue40377@roundup.psfhosted.org>
2020-04-24 13:25:54stephtrlinkissue40377 messages
2020-04-24 13:25:54stephtrcreate