summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/zephyr/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/zephyr/main.c b/ports/zephyr/main.c
index e0e50196b..c8f9601c3 100644
--- a/ports/zephyr/main.c
+++ b/ports/zephyr/main.c
@@ -145,8 +145,8 @@ soft_reset:
vfs_init();
#endif
- #if MICROPY_MODULE_FROZEN
- pyexec_frozen_module("main.py");
+ #if MICROPY_MODULE_FROZEN || MICROPY_VFS
+ pyexec_file_if_exists("main.py");
#endif
for (;;) {