Skip to content
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
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Development requirements. Only required for testing
appdirs
platformdirs
py
pytest
lxml
Expand Down
4 changes: 2 additions & 2 deletions src/pyshark/cache.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import pathlib
import shutil

import appdirs
import platformdirs


def get_cache_dir(tshark_version) -> pathlib.Path:
cache_dir = pathlib.Path(appdirs.user_cache_dir(appname="pyshark", version=tshark_version))
cache_dir = pathlib.Path(platformdirs.user_cache_dir(appname="pyshark", version=tshark_version))
if not cache_dir.exists():
cache_dir.mkdir(parents=True)
return cache_dir
Expand Down
2 changes: 1 addition & 1 deletion src/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
version="0.6.1",
packages=find_packages(),
package_data={'': ['*.ini', '*.pcapng']},
install_requires=['lxml', 'termcolor', 'packaging', 'appdirs'],
install_requires=['lxml', 'termcolor', 'packaging', 'platformdirs'],
tests_require=['pytest'],
url="https://github.com/KimiNewt/pyshark",
license="MIT",
Expand Down