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'))