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

Use platformdirs instead of appdirs #110

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Use platformdirs instead of appdirs
Use the better maintained `platformdirs` instead of `appdirs`.
  • Loading branch information
felixonmars committed Jul 16, 2021
commit ead9c33d1db1d8a1fad21104d3f11f31187dd442
4 changes: 2 additions & 2 deletions rply/parsergenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import tempfile
import warnings

from appdirs import AppDirs
from platformdirs import PlatformDirs

from rply.errors import ParserGeneratorError, ParserGeneratorWarning
from rply.grammar import Grammar
Expand Down Expand Up @@ -178,7 +178,7 @@ def build(self):

table = None
if self.cache_id is not None:
cache_dir = AppDirs("rply").user_cache_dir
cache_dir = PlatformDirs("rply").user_cache_dir
cache_file = os.path.join(
cache_dir,
"%s-%s-%s.json" % (
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
author="Alex Gaynor",
author_email="[email protected]",
packages=["rply"],
install_requires=["appdirs"],
install_requires=["platformdirs"],
)