summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2023-06-09 13:34:08 +1000
committerJim Mussared <jim.mussared@gmail.com>2023-06-09 13:36:12 +1000
commitb4de697ad10427a1513c02160abd0662f55701d5 (patch)
treed557177a5d72e09e80d3261656a4d4a132fea22c
parentf01d5fb657159f1afa9d41cf39830d17b791a67e (diff)
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>
-rw-r--r--tools/mpremote/mpremote/commands.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/mpremote/mpremote/commands.py b/tools/mpremote/mpremote/commands.py
index ef1a7643c..de12aa0bb 100644
--- a/tools/mpremote/mpremote/commands.py
+++ b/tools/mpremote/mpremote/commands.py
@@ -137,13 +137,13 @@ def do_filesystem(state, args):
raise CommandError("'cp -r' source files must be local")
_list_recursive(src_files, path)
known_dirs = {""}
- state.transport.exec_("import os")
+ state.transport.exec("import os")
for dir, file in src_files:
dir_parts = dir.split("/")
for i in range(len(dir_parts)):
d = "/".join(dir_parts[: i + 1])
if d not in known_dirs:
- state.transport.exec_(
+ state.transport.exec(
"try:\n os.mkdir('%s')\nexcept OSError as e:\n print(e)" % d
)
known_dirs.add(d)