Local appdata location on MS Store python is not what orca thinks it is #32
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Writes to
C:/Users/ilia/AppData/Local/orca
get redirected toC:/Users/ilia/AppData/Local/Packages/PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0/LocalCache/Local/orca
on my install. This is intended MS Store behavior: https://learn.microsoft.com/en-us/windows/msix/desktop/desktop-to-uwp-behind-the-scenes#file-systemAsking the shell to do the dirty work is one solution:
Simpler solution:
Confoundingly, when I install Python from the MS Store, I don't get the same behavior:
It would really be convenient if I could actually reproduce this...
Ok, bizarre. Because
AppData\Local\orca
already existed on my system, it didn't do the redirect shenanigans. If I delete that folder, I reproduce it just fine.The doc link mentions:
Same happens if I try to resolve a non-existing path:
This may also mean that after shelling to xcopy the original folder won't be possible to delete from python code. So it'd either need a different name or another shell command to remove itself.
It seems that all I have to do is create the folders using the shell, and then the rest all works fine, no xcopy.
@MartinFouilleul Did you say on Monday that this was still giving you trouble? I don't remember now.
No, it doesn't cause trouble for me, I think we can close this since #44 was merged.