File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -239,11 +239,10 @@ int main(void) {
239239 // Micro Python init
240240 qstr_init ();
241241 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 );
247246
248247 exti_init ();
249248
Original file line number Diff line number Diff line change @@ -264,8 +264,9 @@ int main(void) {
264264 qstr_init ();
265265 mp_init ();
266266 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 );
269270
270271 readline_init ();
271272
You can’t perform that action at this time.
0 commit comments