webassembly: Include lib in sys.path.

Following other ports.

Signed-off-by: Damien George <damien@micropython.org>
pull/13583/head
Damien George 2023-04-15 09:27:43 +10:00
rodzic 2b8e88c563
commit ff15dfcaa8
2 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -105,6 +105,7 @@ void mp_js_init(int heap_size) {
mp_vfs_mount(2, args, (mp_map_t *)&mp_const_empty_map);
MP_STATE_VM(vfs_cur) = MP_STATE_VM(vfs_mount_table);
}
mp_obj_list_append(mp_sys_path, MP_OBJ_NEW_QSTR(MP_QSTR__slash_lib));
#endif
}

Wyświetl plik

@ -1,2 +1,3 @@
// qstrs specific to this port
// *FORMAT-OFF*
Q(/lib)