Skip to content

storing local cache in XDG_CACHE_HOME#49

Merged
TheJolman merged 6 commits intomainfrom
storing-cache-in-new-directory
Apr 10, 2026
Merged

storing local cache in XDG_CACHE_HOME#49
TheJolman merged 6 commits intomainfrom
storing-cache-in-new-directory

Conversation

@FarmerAKH
Copy link
Copy Markdown
Collaborator

Utilized pathlib's Path to get access to the root directory and create an oss-stats directory with the stats.json file.

I changed the CACHE_FILE variable in cache.py to have it read and write to that directory.
image

@FarmerAKH FarmerAKH requested a review from timothyouu as a code owner April 10, 2026 06:36
@TheJolman
Copy link
Copy Markdown
Collaborator

Mb for not mentioning it in the issue but this needs to work on all platforms, this impl will only work on Linux systems. If you wanna be lazy there's libraries for doing this kinda thing like: https://github.com/tox-dev/platformdirs

@GaballaGit
Copy link
Copy Markdown
Member

GaballaGit commented Apr 10, 2026

No you’re not Adam!

@TheJolman TheJolman merged commit d733a18 into main Apr 10, 2026
1 check passed
@TheJolman TheJolman deleted the storing-cache-in-new-directory branch April 10, 2026 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants