From aeaacdb6e6f4ecf2b4263da58262ce0c2b231275 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Thu, 22 Oct 2020 21:56:22 +0200 Subject: Fix config path (expand) error --- muddle.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'muddle.py') diff --git a/muddle.py b/muddle.py index 81bc683..b4e4311 100644 --- a/muddle.py +++ b/muddle.py @@ -63,13 +63,13 @@ if platform.system() == "Linux": default_config_dir = pathlib.PurePath(os.environ["XDG_CONFIG_HOME"]).joinpath("muddle/") elif pathlib.Path("~/.config").expanduser().exists(): - default_config_dir = pathlib.PurePath("~/.config/muddle/").expanduser() + default_config_dir = pathlib.Path("~/.config/muddle/").expanduser() if os.environ.get("XDG_CACHE_HOME"): - default_log_dir = pathlib.PurePath(os.environ["XDG_CACHE_HOME"]).joinpath("muddle/") + default_log_dir = pathlib.Path(os.environ["XDG_CACHE_HOME"]).joinpath("muddle/") elif pathlib.Path("~/.cache").expanduser().exists(): - default_log_dir = pathlib.PurePath("~/.cache/muddle/").expanduser() + default_log_dir = pathlib.Path("~/.cache/muddle/").expanduser() # TODO: implement for other platforms -- cgit v1.2.1