diff --git a/pybricksdev/cli/__init__.py b/pybricksdev/cli/__init__.py index 8f016e4..56c3ea6 100644 --- a/pybricksdev/cli/__init__.py +++ b/pybricksdev/cli/__init__.py @@ -112,10 +112,10 @@ def add_parser(self, subparsers: argparse._SubParsersAction): parser.tool = self async def run(self, args: argparse.Namespace): - from ..compile import compile_file, print_mpy + from ..compile import compile_multi_file, print_mpy with _get_script_path(args.file) as script_path: - mpy = await compile_file(script_path, args.abi) + mpy = await compile_multi_file(script_path, args.abi) print_mpy(mpy) diff --git a/pybricksdev/compile.py b/pybricksdev/compile.py index 2725586..da45a28 100644 --- a/pybricksdev/compile.py +++ b/pybricksdev/compile.py @@ -191,7 +191,7 @@ def print_mpy(data): # ports without usable I/O, REPL or otherwise. WIDTH = 8 print() - print(f"// MPY file. Version: {data[1]}. Size: {len(data)} bytes") + print(f"// MPY file. Size: {len(data)} bytes") print("const uint8_t script[] = {") for c in chunk(data, WIDTH):