Skip to content

Commit 1030bf3

Browse files
committed
alif: Fix pyexec args.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
1 parent 94878c0 commit 1030bf3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ports/alif/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,15 +134,15 @@ int main(void) {
134134
pyexec_frozen_module("_boot.py", false);
135135

136136
// Execute user scripts.
137-
int ret = pyexec_file_if_exists("boot.py");
137+
int ret = pyexec_file_if_exists("boot.py", true);
138138
#if MICROPY_HW_ENABLE_USBDEV
139139
mp_usbd_init();
140140
#endif
141141
if (ret & PYEXEC_FORCED_EXIT) {
142142
goto soft_reset_exit;
143143
}
144144
if (pyexec_mode_kind == PYEXEC_MODE_FRIENDLY_REPL && ret != 0) {
145-
ret = pyexec_file_if_exists("main.py");
145+
ret = pyexec_file_if_exists("main.py", true);
146146
if (ret & PYEXEC_FORCED_EXIT) {
147147
goto soft_reset_exit;
148148
}

0 commit comments

Comments
 (0)