summaryrefslogtreecommitdiff
path: root/ports/esp8266/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/esp8266/main.c')
-rw-r--r--ports/esp8266/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/esp8266/main.c b/ports/esp8266/main.c
index 67157ce18..3465e0446 100644
--- a/ports/esp8266/main.c
+++ b/ports/esp8266/main.c
@@ -77,9 +77,9 @@ STATIC void mp_reset(void) {
#if MICROPY_MODULE_FROZEN
pyexec_frozen_module("_boot.py");
- pyexec_file("boot.py");
+ pyexec_file_if_exists("boot.py");
if (pyexec_mode_kind == PYEXEC_MODE_FRIENDLY_REPL) {
- pyexec_file("main.py");
+ pyexec_file_if_exists("main.py");
}
#endif
}