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 dev-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ dependencies:
- pytest
- pytest-sugar
- typer
- appdirs
- platformdirs
- empack >=3,<4
- microsoft::playwright
- emsdk
Expand Down
4 changes: 2 additions & 2 deletions pyjs_code_runner/get_cache_dir.py
Original file line number Diff line number Diff line change
@@ -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"))
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed ThorstenBeier here (and DerThorsten from conftest.py below), as these strings seemed like a remnant of testing code. The appauthor parameter should be picked up as whatever the default is automatically?

path = Path(platformdirs.user_data_dir("pyjs_code_runner"))
path.mkdir(parents=True, exist_ok=True)
return path

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
]
dependencies = [
"appdirs",
"platformdirs",
"empack >=3.0.0",
"playwright",
"rich",
Expand Down
2 changes: 1 addition & 1 deletion test/conftest.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down