From ca2f10507c71020eab124d4f22231faca9934214 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Thu, 17 Nov 2022 01:29:16 +0100 Subject: Add MacOS to paths.py and update README --- muddle/paths.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'muddle') diff --git a/muddle/paths.py b/muddle/paths.py index 1448586..116d128 100644 --- a/muddle/paths.py +++ b/muddle/paths.py @@ -26,7 +26,10 @@ elif platform.system() == "Windows": if os.environ.get("LOCALAPPDATA"): default_log_dir = pathlib.Path(os.environ["LOCALAPPDATA"]).joinpath("muddle") -# TODO: implement for MacOS +elif platform.system() == "Darwin": + default_config_dir = pathlib.Path("~/Library/Preferences/ch.0hm.muddle/").expanduser() + default_log_dir = pathlib.Path("~/Library/Caches/ch.0hm.muddle/").expanduser() + default_config_file = default_config_dir.joinpath("muddle.ini") -default_log_file = default_log_dir.joinpath("muddle.log") \ No newline at end of file +default_log_file = default_log_dir.joinpath("muddle.log") -- cgit v1.2.1