From 3c4c294f9c49cd6d0d5e2ff3cda72a77f07ef19c Mon Sep 17 00:00:00 2001 From: qwint Date: Wed, 18 Feb 2026 11:51:58 -0600 Subject: [PATCH] WebHost: Better document config loading fallback (#5948) * change functionality to follow comment * revert code change and explicitly document intent --- WebHost.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/WebHost.py b/WebHost.py index db465be61b..41203ae1fc 100644 --- a/WebHost.py +++ b/WebHost.py @@ -20,7 +20,8 @@ if typing.TYPE_CHECKING: Utils.local_path.cached_path = os.path.dirname(__file__) settings.no_gui = True configpath = os.path.abspath("config.yaml") -if not os.path.exists(configpath): # fall back to config.yaml in home +if not os.path.exists(configpath): + # fall back to config.yaml in user_path if config does not exist in cwd to match settings.py configpath = os.path.abspath(Utils.user_path('config.yaml'))