From 757b27ccfaac370fb15ee15fff0fa06dcc77e603 Mon Sep 17 00:00:00 2001 From: devaskim Date: Thu, 5 Dec 2024 21:51:14 +0500 Subject: [PATCH] Use path separator, instead of separator of paths. --- thingsboard_gateway/tb_utility/tb_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thingsboard_gateway/tb_utility/tb_handler.py b/thingsboard_gateway/tb_utility/tb_handler.py index 6e609e63..c1344329 100644 --- a/thingsboard_gateway/tb_utility/tb_handler.py +++ b/thingsboard_gateway/tb_utility/tb_handler.py @@ -172,7 +172,7 @@ def __init__(self, filename, when='h', interval=1, backupCount=0, encoding=None, delay=False, utc=False): config_path = environ.get('TB_GW_LOGS_PATH') if config_path: - filename = config_path + os.pathsep + filename.split(os.pathsep)[-1] + filename = config_path + os.sep + filename.split(os.sep)[-1] if not Path(filename).exists(): with open(filename, 'w'):