File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 33
44import contextlib
55import json
6+ import sys
67import tempfile
78from pathlib import Path
89from typing import List , Optional , Union
910
1011from IPython .core .interactiveshell import InteractiveShell
1112from loguru import logger as log
13+
1214from micropython_magic .script_access import path_for_script
1315
1416from .interactive import ipython_run
@@ -37,8 +39,7 @@ def __init__(
3739 @property
3840 def cmd_prefix (self ) -> List [str ]:
3941 """mpremote command prefix including port and resume according to options"""
40- # return f"mpremote {self.connect_to}{'resume' if self.resume else ''} "
41- prefix = ["mpremote" ] + self .connect_to
42+ prefix = [sys .executable , "-m" , "mpremote" ] + self .connect_to
4243 if self .resume :
4344 prefix .append ("resume" )
4445 return prefix
You can’t perform that action at this time.
0 commit comments