Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache path on Windows #155

Open
JavadocMD opened this issue Aug 30, 2024 · 0 comments
Open

Cache path on Windows #155

JavadocMD opened this issue Aug 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@JavadocMD
Copy link
Contributor

JavadocMD commented Aug 30, 2024

The cache path can sometimes resolve incorrectly on Windows machines. This may be related to using the Microsoft Store installer of Python, but that is not certain.

platformdirs tends to suggest the following for the Windows application's cache path:

C:\Users\$USER\AppData\Local\epymorph\epymorph\Cache

When we call resolve() on that Path, however it can return something like this:

C:\Users\$USER\AppData\Local\packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\Local\epymorph\epymorph\Cache

This is then problematic when checking if the attempted cache path is relative to (a subfolder of) the original cache path. Of course this may be fixable in our logic -- perhaps we don't resolve, or we resolve all paths the same way everywhere. In either case since our end users may opt to use that Python installation method we should try to be compatible.

As a broader issue, we should test application function across a variety of platforms and Pythons (e.g., conda).

@JavadocMD JavadocMD added the bug Something isn't working label Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant