mirror of
https://github.com/weewx/weewx.git
synced 2026-04-23 19:17:05 -04:00
fix loop_on_init bug
This commit is contained in:
@@ -118,10 +118,10 @@ def main():
|
||||
log.info("Debug: %s", weewx.debug)
|
||||
|
||||
# If no command line --loop-on-init was specified, look in the config file.
|
||||
if namespace.loop_on_init is None:
|
||||
if not namespace.loop_on_init:
|
||||
loop_on_init = to_bool(config_dict.get('loop_on_init', False))
|
||||
else:
|
||||
loop_on_init = namespace.loop_on_init
|
||||
loop_on_init = True
|
||||
|
||||
# Save the current working directory. A service might
|
||||
# change it. In case of a restart, we need to change it back.
|
||||
|
||||
Reference in New Issue
Block a user