New submission from Stephan Troyer <stephantro...@live.at>:

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!

----------
components: IO
messages: 367188
nosy: stephtr
priority: normal
severity: normal
status: open
title: APPDATA location in Microsoft Store version
type: behavior
versions: Python 3.8

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40377>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to