Skip to content

Commit 8dc5bfb

Browse files
author
Paul Sokolovsky
committed
webrepl_cli.py: Fix rsplit usage.
1 parent 7851634 commit 8dc5bfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webrepl_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def get_file(ws, local_file, remote_file):
119119

120120

121121
def help(rc=0):
122-
exename = sys.argv[0].rsplit("/", 1)[1]
122+
exename = sys.argv[0].rsplit("/", 1)[-1]
123123
print("%s - Perform remote file operations using MicroPython WebREPL protocol" % exename)
124124
print("Arguments:")
125125
print(" <host>:<remote_file> <local_file> - Copy remote file to local file")

0 commit comments

Comments
 (0)