From c18cea182dc0942c768cc0351a61937efa482912 Mon Sep 17 00:00:00 2001 From: pbo Date: Tue, 16 Jun 2026 10:25:18 +0200 Subject: [PATCH] fix: resolve CycloneDDS log path to current user home dir /tmp/cdds.LOG is shared across all users on a machine, causing log collisions in multi-developer setups. Use os.path.expanduser("~") so each user gets their own ~/cdds.LOG at import time. --- unitree_sdk2py/core/channel_config.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/unitree_sdk2py/core/channel_config.py b/unitree_sdk2py/core/channel_config.py index 19a67a4c..8ebc6c02 100644 --- a/unitree_sdk2py/core/channel_config.py +++ b/unitree_sdk2py/core/channel_config.py @@ -1,4 +1,7 @@ -ChannelConfigHasInterface = ''' +import os +_CDDS_LOG = os.path.join(os.path.expanduser("~"), "cdds.LOG") + +ChannelConfigHasInterface = f''' @@ -8,7 +11,7 @@ config - /tmp/cdds.LOG + {_CDDS_LOG} '''