From ef1a766dac44641d9c68b0100d992b3f5a3ddc7a Mon Sep 17 00:00:00 2001 From: marcinlei Date: Fri, 28 Mar 2025 00:47:23 +0800 Subject: [PATCH] =?UTF-8?q?fix(cube:=20create=5Fnicsensor)=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E5=A4=9A=E7=B3=BB=E7=BB=9F=E9=97=B4=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E5=85=BC=E5=AE=B9=E6=89=A7=E8=A1=8C=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cube/src/create_nicsensor.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cube/src/create_nicsensor.py b/cube/src/create_nicsensor.py index 2b873c7..1e6a05b 100644 --- a/cube/src/create_nicsensor.py +++ b/cube/src/create_nicsensor.py @@ -22,9 +22,8 @@ file_path = 'create_nicsensor.py' absolute_path = os.path.abspath(file_path) workspace_path = get_content_before_substring(absolute_path, "src") -model_path = "data\\" -board_feature_path = workspace_path + model_path + "BoardFeature.json" -hw_topo_path = workspace_path + model_path + "ServerHwTopo.json" +board_feature_path = os.path.join(workspace_path, "data", "BoardFeature.json") +hw_topo_path = os.path.join(workspace_path, "data", "ServerHwTopo.json") dbg_print("info", "====== Pre Init ======") dbg_print("info", f"workspace_path={workspace_path}")