Skip to content

Commit

Permalink
general: migrate appdirs -> platformdirs
Browse files Browse the repository at this point in the history
appdirs is unmaintained, platformdirs is a compatible replacement
  • Loading branch information
karlicoss committed Oct 24, 2024
1 parent a263c13 commit ab301a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
dynamic = ["version"] # version is managed by setuptools_scm
name = "orger"
dependencies = [
"appdirs" , # to keep state files
"platformdirs", # to keep state files
"atomicwrites", # to safely append data to a file
]
requires-python = ">= 3.9"
Expand Down
4 changes: 2 additions & 2 deletions src/orger/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ def todo(dt: datetime, **kwargs):


def orger_user_dir() -> Path:
import appdirs # type: ignore[import-untyped]
import platformdirs

return Path(appdirs.user_config_dir('orger'))
return Path(platformdirs.user_config_dir('orger'))


if not TYPE_CHECKING:
Expand Down

0 comments on commit ab301a0

Please sign in to comment.