summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/mpremote/mpremote/mip.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/mpremote/mpremote/mip.py b/tools/mpremote/mpremote/mip.py
index 46c9686ad..c86bf01f4 100644
--- a/tools/mpremote/mpremote/mip.py
+++ b/tools/mpremote/mpremote/mip.py
@@ -179,9 +179,9 @@ def do_mip(state, args):
if args.target is None:
state.transport.exec("import sys")
lib_paths = (
- state.transport.eval("'\\n'.join(p for p in sys.path if p.endswith('/lib'))")
+ state.transport.eval("'|'.join(p for p in sys.path if p.endswith('/lib'))")
.decode()
- .split("\n")
+ .split("|")
)
if lib_paths and lib_paths[0]:
args.target = lib_paths[0]