From 35b4121a2529dde3f156db55559b2ac502757ae1 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sun, 27 Oct 2024 02:26:08 +0200 Subject: Simplify logic --- yahoozy.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/yahoozy.py b/yahoozy.py index 9eba0bf..62b5478 100755 --- a/yahoozy.py +++ b/yahoozy.py @@ -800,9 +800,8 @@ def histhandle(mode: str) -> TextIO: elif os.name == "posix": if (path := os.getenv("XDG_DATA_HOME")) == "": assert (path := os.getenv("HOME")) - path = Path(path) / ".local" / "share" / "yahoozy" - else: - path = Path(path) / "yahoozy" + path = Path(path) / ".local" / "share" + path = Path(path) / "yahoozy" else: raise NotImplementedError(f"No history support for {os.name}") -- cgit v1.2.3