Skip to content

Commit 25b19b5

Browse files
committed
bricks/simhub: Replace mpy wrapper script with Pybricksdev call.
This has been added to Pybricksdev. We want to avoid using a local script since it makes relative paths complicated when running this from the MicroPython test scripts. Also explicitly pass the last argument, in order to ignore the test suite passing flags such as -X.
1 parent f62ecc1 commit 25b19b5

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

bricks/simhub/make_mpy.py

Lines changed: 0 additions & 15 deletions
This file was deleted.

lib/pbio/platform/sim_hub/platform.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ int main(int argc, char **argv) {
142142

143143
// Pybricksdev helper script, pipes multi-mpy to us.
144144
char command[512];
145-
snprintf(command, sizeof(command), "python ./bricks/simhub/make_mpy.py %s", argv[1]);
145+
snprintf(command, sizeof(command), "pybricksdev compile --bin %s", argv[argc - 1]);
146146
FILE *pipe = popen(command, "r");
147147
if (!pipe) {
148148
printf("Failed to compile program with Pybricksdev\n");

0 commit comments

Comments
 (0)