From 439324b3254fb4c82dd5674e4803eb19b3c09dbc Mon Sep 17 00:00:00 2001 From: Florent Date: Thu, 5 Feb 2026 12:12:15 -0400 Subject: [PATCH] handle ~ in path for download/upload --- src/meshcore_cli/meshcore_cli.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/meshcore_cli/meshcore_cli.py b/src/meshcore_cli/meshcore_cli.py index e2b1df7..4debe58 100644 --- a/src/meshcore_cli/meshcore_cli.py +++ b/src/meshcore_cli/meshcore_cli.py @@ -4055,6 +4055,7 @@ async def repeater_loop(port, baudrate): else : file_path = cmd.lower().split(" ", 3)[2] + file_path = file_path.replace("~", str(Path.home())) with open(file_path, "r") as file: ser.write("region load\r".encode()) for line in file: @@ -4085,6 +4086,7 @@ async def repeater_loop(port, baudrate): else : file_path = cmd.lower().split(" ", 3)[2] + file_path = file_path.replace("~", str(Path.home())) with open(file_path, "w") as file: ser.write("region\r".encode()) # send regions command