summaryrefslogtreecommitdiff
path: root/ports/esp8266/main.c
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2018-11-15 12:52:54 -0800
committerGitHub <noreply@github.com>2018-11-15 12:52:54 -0800
commit0ea31ec15dc212b5238f2ca6009ac206abe9e034 (patch)
tree8f87648977c541995c9a3c62476d5e4003f66468 /ports/esp8266/main.c
parent7e2a3bf52edbf7c94939bdb82da7f6f9e0889268 (diff)
parent11de8fdca76da455ce52ca0fdd46fb70ce237dd9 (diff)
Merge pull request #1339 from dhalbert/3.x-frozen-swap4.0.0-alpha.3
Merge 3.x .frozen and /lib swap on sys.path; update frozen libs
Diffstat (limited to 'ports/esp8266/main.c')
-rw-r--r--ports/esp8266/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ports/esp8266/main.c b/ports/esp8266/main.c
index 4882bf599..969d35bbf 100644
--- a/ports/esp8266/main.c
+++ b/ports/esp8266/main.c
@@ -95,10 +95,11 @@ 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_lib));
mp_obj_list_append(mp_sys_path, MP_OBJ_NEW_QSTR(MP_QSTR__slash_));
// Frozen modules are in their own pseudo-dir, e.g., ".frozen".
+ // Prioritize .frozen over /lib.
mp_obj_list_append(mp_sys_path, MP_OBJ_NEW_QSTR(MP_FROZEN_FAKE_DIR_QSTR));
+ mp_obj_list_append(mp_sys_path, MP_OBJ_NEW_QSTR(MP_QSTR__slash_lib));
mp_obj_list_init(mp_sys_argv, 0);