mirror of
https://git.freebsd.org/ports.git
synced 2025-06-07 13:50:38 -04:00
- Change build dependency Release changes: https://github.com/ggozad/oterm/releases/tag/0.4.4 Reported by: Yiorgis Gozadinos <notifications@github.com>
26 lines
753 B
Python
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
|
|
|
|
|