Skip to content

Commit

Permalink
Merge pull request #1612 from devaskim/patch-1
Browse files Browse the repository at this point in the history
[FIX] Use path separator, instead of separator of paths.
  • Loading branch information
imbeacon authored Dec 11, 2024
2 parents efa5e21 + 757b27c commit 839481c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thingsboard_gateway/tb_utility/tb_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'):
Expand Down

0 comments on commit 839481c

Please sign in to comment.