File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -239,11 +239,10 @@ int main(void) {
239
239
// Micro Python init
240
240
qstr_init ();
241
241
mp_init ();
242
- mp_obj_t def_path [3 ];
243
- def_path [0 ] = MP_OBJ_NEW_QSTR (MP_QSTR_0_colon__slash_ );
244
- def_path [1 ] = MP_OBJ_NEW_QSTR (MP_QSTR_0_colon__slash_src );
245
- def_path [2 ] = MP_OBJ_NEW_QSTR (MP_QSTR_0_colon__slash_lib );
246
- mp_sys_path = mp_obj_new_list (3 , def_path );
242
+ mp_obj_list_init (mp_sys_path , 0 );
243
+ mp_obj_list_append (mp_sys_path , MP_OBJ_NEW_QSTR (MP_QSTR_0_colon__slash_ ));
244
+ mp_obj_list_append (mp_sys_path , MP_OBJ_NEW_QSTR (MP_QSTR_0_colon__slash_lib ));
245
+ mp_obj_list_init (mp_sys_argv , 0 );
247
246
248
247
exti_init ();
249
248
Original file line number Diff line number Diff line change @@ -264,8 +264,9 @@ int main(void) {
264
264
qstr_init ();
265
265
mp_init ();
266
266
mp_obj_list_init (mp_sys_path , 0 );
267
- mp_obj_list_append (mp_sys_argv , MP_OBJ_NEW_QSTR (MP_QSTR_0_colon__slash_ ));
268
- mp_obj_list_append (mp_sys_argv , MP_OBJ_NEW_QSTR (MP_QSTR_0_colon__slash_lib ));
267
+ mp_obj_list_append (mp_sys_path , MP_OBJ_NEW_QSTR (MP_QSTR_0_colon__slash_ ));
268
+ mp_obj_list_append (mp_sys_path , MP_OBJ_NEW_QSTR (MP_QSTR_0_colon__slash_lib ));
269
+ mp_obj_list_init (mp_sys_argv , 0 );
269
270
270
271
readline_init ();
271
272
You can’t perform that action at this time.
0 commit comments