From a451d1d7d6227b605536d87f47f7e6322589255c Mon Sep 17 00:00:00 2001 From: pdxlocations Date: Mon, 21 Jul 2025 23:18:11 -0700 Subject: [PATCH] note to future me --- contact/ui/default_config.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/contact/ui/default_config.py b/contact/ui/default_config.py index f292b52..fd4b61b 100644 --- a/contact/ui/default_config.py +++ b/contact/ui/default_config.py @@ -7,6 +7,11 @@ from typing import Dict script_dir = os.path.dirname(os.path.abspath(__file__)) parent_dir = os.path.abspath(os.path.join(script_dir, os.pardir)) +# To test writting to a non-writable directory, you can uncomment the following lines: +# mkdir /tmp/test_nonwritable +# chmod -w /tmp/test_nonwritable +# parent_dir = "/tmp/test_nonwritable" + def _is_writable_dir(path: str) -> bool: """