Skip to content

Commit

Permalink
Replace appdirs with platformdirs
Browse files Browse the repository at this point in the history
  • Loading branch information
jwodder committed Nov 21, 2023
1 parent 5eed746 commit 2b47325
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ package_dir =
=src
python_requires = >=3.7
install_requires =
appdirs == 1.*
joblib ~= 1.1
platformdirs

[options.extras_require]
benchmarks =
Expand Down
4 changes: 2 additions & 2 deletions src/fscacher/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
import shutil
import sys
import time
import appdirs
import joblib
from platformdirs import PlatformDirs

lgr = logging.getLogger(__name__)

Expand Down Expand Up @@ -43,7 +43,7 @@ def __init__(self, name=None, *, path=None, tokens=None, envvar=None):
set, `FSCACHER_CACHE` is used
"""
if path is None:
dirs = appdirs.AppDirs("fscacher")
dirs = PlatformDirs("fscacher")
path = op.join(dirs.user_cache_dir, (name or "cache"))
elif name is not None:
raise ValueError("'name' and 'path' are mutually exclusive")
Expand Down

0 comments on commit 2b47325

Please sign in to comment.