Skip to content

Commit

Permalink
Merge pull request #871 from glensc/platformdirs
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc authored Jan 23, 2023
2 parents ef60203 + 648648f commit 50fa9e2
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 15 deletions.
1 change: 0 additions & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ verify_ssl = true
[dev-packages]

[packages]
appdirs = "==1.4.4"
attrs = "==22.2.0"
"backports.cached-property" = {version="==1.0.2", python_version="<='3.7'"}
cattrs = {version="==22.2.0", python_version=">='3.7'"}
Expand Down
10 changes: 1 addition & 9 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ plextraktsync sync
```

NOTE: `pipx` install will use OS specific paths for Config, Logs, Cache, see
[appdirs] documentation for details or check output of [info command](#info-command).
[platformdirs] documentation for details or check output of [info command](#info-command).

[appdirs]: https://pypi.org/project/appdirs
[platformdirs]: https://pypi.org/project/platformdirs
[install-pipx]: https://github.com/pypa/pipx#install-pipx

### Docker Compose
Expand Down
4 changes: 2 additions & 2 deletions plextraktsync/util/Path.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ def log_dir(self):

@cached_property
def app_dir(self):
from appdirs import AppDirs
from platformdirs import PlatformDirs

return AppDirs(self.app_name)
return PlatformDirs(self.app_name)

@cached_property
def installed(self):
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#

-i https://pypi.org/simple/
appdirs==1.4.4
attrs==22.2.0
backports.cached-property==1.0.2; python_version <= '3.7'
cattrs==22.2.0; python_version >= '3.7'
Expand Down

0 comments on commit 50fa9e2

Please sign in to comment.