mirror of
https://github.com/meshcore-dev/meshcore-cli.git
synced 2026-04-20 22:13:48 +00:00
handle ~ in path for download/upload
This commit is contained in:
parent
06a66136a9
commit
439324b325
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue