-
Notifications
You must be signed in to change notification settings - Fork 0
/
dirs.patch
45 lines (30 loc) · 1.49 KB
/
dirs.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
diff --git a/olman-client/olman_client/files/platform.py b/olman-client/olman_client/files/platform.py
index 78f93dc..22bd0ba 100644
--- a/olman-client/olman_client/files/platform.py
+++ b/olman-client/olman_client/files/platform.py
@@ -1,7 +1,6 @@
+import os
from pathlib import Path
-TEST_DIR = Path(__file__).parent / "output_dir"
-# TEST_DIR.mkdir(parents=True, exist_ok=True)
OLMAN_FOLDER_NAME = "olman"
@@ -12,7 +11,6 @@ def getXdgConfigDir() -> Path:
see: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
"""
- return TEST_DIR / "config" # TODO: Remove
return Path(os.environ.get("XDG_CONFIG_HOME", "~/.config")).expanduser()
@@ -23,7 +21,6 @@ def getXdgDataDir() -> Path:
see: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
"""
- return TEST_DIR / "data" # TODO: Remove
return Path(os.environ.get("XDG_DATA_HOME", "~/.local/share")).expanduser()
@@ -36,7 +33,6 @@ def getXdgStateDir() -> Path:
see: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
"""
- return TEST_DIR / "state" # TODO: Remove
return Path(os.environ.get("XDG_STATE_HOME", "~/.local/state")).expanduser()
@@ -46,7 +42,6 @@ def getXdgCacheDir() -> Path:
see: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
"""
- return TEST_DIR / "cache" # TODO: Remove
return Path(os.environ.get("XDG_CACHE_HOME", "~/.cache")).expanduser()