From 809baeec9c85115bb518dae94c35269c654ee1b9 Mon Sep 17 00:00:00 2001 From: Tom Keffer Date: Sun, 3 Dec 2023 14:45:07 -0800 Subject: [PATCH] It's an assignment, stupid --- src/weecfg/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/weecfg/__init__.py b/src/weecfg/__init__.py index dcd4c7ca..afe990e4 100644 --- a/src/weecfg/__init__.py +++ b/src/weecfg/__init__.py @@ -167,7 +167,7 @@ def read_config(config_path, args=None, locations=DEFAULT_LOCATIONS, # If missing, set WEEWX_ROOT to the directory the config file is in config_dict['WEEWX_ROOT'] = os.path.dirname(config_path) elif config_dict['WEEWX_ROOT'] == '/': - config_dict['WEEWX_ROOT'] == '/etc/weewx' + config_dict['WEEWX_ROOT'] = '/etc/weewx' # In case WEEWX_ROOT is a relative path, join it with the location of the config file, then # convert it to an absolute path. config_dict['WEEWX_ROOT'] = os.path.abspath(os.path.join(os.path.dirname(config_path),