Skip to content

Commit 161e9f4

Browse files
committed
esp8266/main: Put /lib before / in sys.path.
upip will use first non-empty component in sys.path as an install path (if MICROPYPATH envvar is not set, like it will be for baremetal targets).
1 parent 52784bf commit 161e9f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

esp8266/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ STATIC void mp_reset(void) {
4949
mp_init();
5050
mp_obj_list_init(mp_sys_path, 0);
5151
mp_obj_list_append(mp_sys_path, MP_OBJ_NEW_QSTR(MP_QSTR_)); // current dir (or base dir of the script)
52-
mp_obj_list_append(mp_sys_path, MP_OBJ_NEW_QSTR(MP_QSTR__slash_));
5352
mp_obj_list_append(mp_sys_path, MP_OBJ_NEW_QSTR(MP_QSTR__slash_lib));
53+
mp_obj_list_append(mp_sys_path, MP_OBJ_NEW_QSTR(MP_QSTR__slash_));
5454
mp_obj_list_init(mp_sys_argv, 0);
5555
#if MICROPY_VFS_FAT
5656
memset(MP_STATE_PORT(fs_user_mount), 0, sizeof(MP_STATE_PORT(fs_user_mount)));

0 commit comments

Comments
 (0)