Skip to content

Commit b4de697

Browse files
committed
tools/mpremote: Fix exec_ -> exec in commands.py.
This was missed in the pyboard refactor and is preventing `cp -r` from working. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
1 parent f01d5fb commit b4de697

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/mpremote/mpremote/commands.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,13 @@ def _list_recursive(files, path):
137137
raise CommandError("'cp -r' source files must be local")
138138
_list_recursive(src_files, path)
139139
known_dirs = {""}
140-
state.transport.exec_("import os")
140+
state.transport.exec("import os")
141141
for dir, file in src_files:
142142
dir_parts = dir.split("/")
143143
for i in range(len(dir_parts)):
144144
d = "/".join(dir_parts[: i + 1])
145145
if d not in known_dirs:
146-
state.transport.exec_(
146+
state.transport.exec(
147147
"try:\n os.mkdir('%s')\nexcept OSError as e:\n print(e)" % d
148148
)
149149
known_dirs.add(d)

0 commit comments

Comments
 (0)