Skip to content

Use platformdirs package to use platform-dependent user cache directory #198

@matthewfeickert

Description

@matthewfeickert

skhepdir = Path.home() / ".local" / "skhepdata"

We could use https://pypi.org/project/appdirs/ to discover the platform-dependent user_cache_dir

Originally posted by @nsmith- in #197 (comment)

https://github.com/ActiveState/appdirs/blob/8734277956c1df3b85385e6b308e954910533884/README.rst?plain=1#L4

Note: This project has been officially deprecated. You may want to check out https://pypi.org/project/platformdirs/ which is a more active fork of appdirs

Though https://github.com/tox-dev/platformdirs has no dependencies and is part of the Tox ecosystem of tools, so that sounds reasonable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions