diff --git a/ports/zephyr/main.c b/ports/zephyr/main.c index e0e50196b3..c8f9601c3b 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 (;;) {