diff --git a/dev-env.yml b/dev-env.yml index 97104d2..a2f9fb9 100644 --- a/dev-env.yml +++ b/dev-env.yml @@ -7,7 +7,7 @@ dependencies: - pytest - pytest-sugar - typer - - appdirs + - platformdirs - empack >=3,<4 - microsoft::playwright - emsdk diff --git a/pyjs_code_runner/get_cache_dir.py b/pyjs_code_runner/get_cache_dir.py index 218a974..34ca3af 100644 --- a/pyjs_code_runner/get_cache_dir.py +++ b/pyjs_code_runner/get_cache_dir.py @@ -1,10 +1,10 @@ -import appdirs +import platformdirs from pathlib import Path def get_appdir(): - path = Path(appdirs.user_data_dir("pyjs_code_runner", "ThorstenBeier")) + path = Path(platformdirs.user_data_dir("pyjs_code_runner")) path.mkdir(parents=True, exist_ok=True) return path diff --git a/pyproject.toml b/pyproject.toml index 9907357..a8fa807 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,7 +22,7 @@ classifiers = [ "Programming Language :: Python :: 3.11", ] dependencies = [ - "appdirs", + "platformdirs", "empack >=3.0.0", "playwright", "rich", diff --git a/test/conftest.py b/test/conftest.py index 5a6d201..aa2a4e3 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -1,7 +1,7 @@ import pytest import subprocess from pathlib import Path -import appdirs +import platformdirs import shutil from typer.testing import CliRunner import os