From 3240a195ea11a368f21b9b28c89b5b23d97cb0ec Mon Sep 17 00:00:00 2001 From: Hristo Date: Thu, 1 Feb 2024 16:52:33 +0200 Subject: [PATCH] hotfix update system one more time --- src/rpi-cpu2mqtt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rpi-cpu2mqtt.py b/src/rpi-cpu2mqtt.py index de5f1bb..ab837e2 100644 --- a/src/rpi-cpu2mqtt.py +++ b/src/rpi-cpu2mqtt.py @@ -562,9 +562,9 @@ def on_message(client, userdata, msg): exit_flag = True exit_flag = False -script_dir = os.path.dirname(os.path.realpath(__file__)) -if __name__ == '__main__': +if __name__ == '__main__': + script_dir = os.path.dirname(os.path.realpath(__file__)) args = parse_arguments(); if args.service: