blob: 436d49cc25f7617356da916b2b6188c8e94e1a56 (
plain) (
blame)
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
|
--- src/oterm/utils.py.orig 2020-02-02 00:00:00 UTC
+++ src/oterm/utils.py
@@ -1,4 +1,4 @@
-import sys
+import platform
from importlib import metadata
from pathlib import Path
@@ -59,12 +59,13 @@ def get_default_data_dir() -> Path:
home = Path.home()
system_paths = {
- "win32": home / "AppData/Roaming/oterm",
- "linux": home / ".local/share/oterm",
- "darwin": home / "Library/Application Support/oterm",
+ "Darwin": home / "Library/Application Support/oterm",
+ "FreeBSD": home / ".local/share/oterm",
+ "Linux": home / ".local/share/oterm",
+ "Windows": home / "AppData/Roaming/oterm",
}
- data_path = system_paths[sys.platform]
+ data_path = system_paths[platform.system()]
return data_path
|