ports/misc/py-oterm/files/patch-src_oterm_utils.py
Nicola Vitale c4affbdbae
misc/py-oterm: Update to 0.4.4
- Change build dependency

Release changes:	https://github.com/ggozad/oterm/releases/tag/0.4.4
Reported by:	Yiorgis Gozadinos <notifications@github.com>
2024-09-02 16:12:52 +02:00

26 lines
753 B
Python

--- 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 pathlib import Path
@@ -16,12 +16,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",
+ "Windows": home / "AppData/Roaming/oterm",
+ "Linux": home / ".local/share/oterm",
+ "FreeBSD": home / ".local/share/oterm",
+ "Darwin": home / "Library/Application Support/oterm",
}
- data_path = system_paths[sys.platform]
+ data_path = system_paths[platform.system()]
return data_path