-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use cache dir to store files over the package dir
- Loading branch information
Showing
4 changed files
with
13 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ persist-queue==0.8.0 | |
packaging==23.0 | ||
setuptools==66.0 | ||
gitpython==3.1.30 | ||
platformdirs==4.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import os | ||
from pathlib import Path | ||
|
||
PACKAGE_DIR = Path(os.path.dirname(os.path.abspath(__file__))) | ||
import platformdirs | ||
|
||
persist_queue_path = PACKAGE_DIR / "jupynium_persist_queue" | ||
CACHE_DIR = Path(platformdirs.user_cache_dir("jupynium")) | ||
persist_queue_path = CACHE_DIR / "jupynium_persist_queue" | ||
jupynium_pid_path = CACHE_DIR / "jupynium_pid.txt" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters