aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--muddle.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/muddle.py b/muddle.py
index c7adbab..22f2396 100644
--- a/muddle.py
+++ b/muddle.py
@@ -72,8 +72,14 @@ if platform.system() == "Linux":
elif pathlib.Path("~/.cache").expanduser().exists():
default_log_dir = pathlib.Path("~/.cache/muddle/").expanduser()
+elif platform.system() == "Windows":
+ if os.environ.get("APPDATA"):
+ default_config_dir = pathlib.Path(os.environ["APPDATA"]).joinpath("muddle/")
-# TODO: implement for other platforms
+ if os.environ.get("LOCALAPPDATA"):
+ default_log_dir = pathlib.Path(os.environ["LOCALAPPDATA"]).joinpath("muddle")
+
+# TODO: implement for MacOS
default_config_file = default_config_dir.joinpath("muddle.ini")
default_log_file = default_log_dir.joinpath("muddle.log")