It's an assignment, stupid

This commit is contained in:
Tom Keffer
2023-12-03 14:45:07 -08:00
parent e8e15b1b1e
commit 809baeec9c

View File

@@ -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),