summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-10-05 00:02:51 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-10-05 00:02:51 +0300
commit161e9f411544357a4cce6e67a08b4ac9351d086a (patch)
tree99244b0facc1d64e0b80934686cd105d7a987f0f /esp8266
parent52784bf5951b6b76cf2c3125a7b78bcfef0553c3 (diff)
downloadmicropython-161e9f411544357a4cce6e67a08b4ac9351d086a.tar.gz
micropython-161e9f411544357a4cce6e67a08b4ac9351d086a.zip
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).
Diffstat (limited to 'esp8266')
-rw-r--r--esp8266/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/esp8266/main.c b/esp8266/main.c
index 22abb22d78..c938dcb30b 100644
--- a/esp8266/main.c
+++ b/esp8266/main.c
@@ -49,8 +49,8 @@ STATIC void mp_reset(void) {
mp_init();
mp_obj_list_init(mp_sys_path, 0);
mp_obj_list_append(mp_sys_path, MP_OBJ_NEW_QSTR(MP_QSTR_)); // current dir (or base dir of the script)
- mp_obj_list_append(mp_sys_path, MP_OBJ_NEW_QSTR(MP_QSTR__slash_));
mp_obj_list_append(mp_sys_path, MP_OBJ_NEW_QSTR(MP_QSTR__slash_lib));
+ mp_obj_list_append(mp_sys_path, MP_OBJ_NEW_QSTR(MP_QSTR__slash_));
mp_obj_list_init(mp_sys_argv, 0);
#if MICROPY_VFS_FAT
memset(MP_STATE_PORT(fs_user_mount), 0, sizeof(MP_STATE_PORT(fs_user_mount)));