Eryk Sun <eryk...@gmail.com> added the comment:

> What it really means for apps that are trying to share state across
> different Python runtimes is that they're not going to have such a 
> great time.

I tried impersonating the token of Explorer in the current thread (i.e. 
GetShellWindow, GetWindowThreadProcessId, OpenProcess, OpenProcessToken, 
ImpersonateLoggedOnUser), but writing to AppData was still redirected. 
Apparently redirection for apps only looks at the process token. A crude 
workaround is to script PowerShell or CMD in a child process.

----------
nosy: +eryksun

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

Reply via email to