summaryrefslogtreecommitdiff
path: root/tools/wasptool
diff options
context:
space:
mode:
Diffstat (limited to 'tools/wasptool')
-rwxr-xr-xtools/wasptool3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/wasptool b/tools/wasptool
index c2ecaba..72dfde9 100755
--- a/tools/wasptool
+++ b/tools/wasptool
@@ -245,6 +245,9 @@ def check_rtc(c):
def handle_binary_download(c, tname, fname):
verbose = bool(c.logfile)
+ if tname.startswith("/"):
+ fname = "." + fname
+
c.run_command('import os')
stat = c.run_command(f'os.stat("{tname}")[6]')
if 'Error' in stat: