Skip to content

Commit 43ef3bf

Browse files
Replace appdirs with platformdirs
1 parent 0d36f65 commit 43ef3bf

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

dev-env.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ dependencies:
66
- pip
77
- pytest
88
- typer
9-
- appdirs
9+
- platformdirs
1010
- empack >=3,<4
1111
- microsoft::playwright
1212
- emsdk

pyjs_code_runner/get_cache_dir.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import appdirs
1+
import platformdirs
22

33
from pathlib import Path
44

55

66
def get_appdir():
7-
path = Path(appdirs.user_data_dir("pyjs_code_runner", "ThorstenBeier"))
7+
path = Path(platformdirs.user_data_dir("pyjs_code_runner"))
88
path.mkdir(parents=True, exist_ok=True)
99
return path
1010

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ classifiers = [
2222
"Programming Language :: Python :: 3.11",
2323
]
2424
dependencies = [
25-
"appdirs",
25+
"platformdirs",
2626
"empack >=3.0.0",
2727
"playwright",
2828
"rich",

test/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import pytest
22
import subprocess
33
from pathlib import Path
4-
import appdirs
4+
import platformdirs
55
import shutil
66
from typer.testing import CliRunner
77
import os
@@ -17,7 +17,7 @@
1717

1818
@pytest.fixture(scope="session")
1919
def env_prefix():
20-
env_root = Path(appdirs.user_data_dir("pytest_code_runner_tests", "DerThorsten"))
20+
env_root = Path(platformdirs.user_data_dir("pytest_code_runner_tests"))
2121
env_root.mkdir(exist_ok=True, parents=True)
2222
env_prefix = Path(env_root) / "testenv"
2323

0 commit comments

Comments
 (0)