diff options
author | Nao Pross <np@0hm.ch> | 2022-11-17 01:29:16 +0100 |
---|---|---|
committer | Nao Pross <np@0hm.ch> | 2022-11-17 01:33:09 +0100 |
commit | ca2f10507c71020eab124d4f22231faca9934214 (patch) | |
tree | bb2495a2572d6a51e7d3f961b34772931e8f6ac3 /muddle | |
parent | Add switch button to gui and set monspace font in logs (diff) | |
download | Muddle-ca2f10507c71020eab124d4f22231faca9934214.tar.gz Muddle-ca2f10507c71020eab124d4f22231faca9934214.zip |
Add MacOS to paths.py and update README
Diffstat (limited to 'muddle')
-rw-r--r-- | muddle/paths.py | 7 |
1 files changed, 5 insertions, 2 deletions
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") |