diff options
| author | Dan Halbert <halbert@halwitz.org> | 2018-11-01 17:14:11 -0400 |
|---|---|---|
| committer | Dan Halbert <halbert@halwitz.org> | 2018-11-01 19:57:10 -0400 |
| commit | 4dfba2f8acec7d76fa61c13fcec662b6d957f69a (patch) | |
| tree | c20be82d6ce362d38a083bf107b6d5be574e53ac /ports/esp8266/main.c | |
| parent | af7a0eedf03b9c028aead1a782d08d9680d6b4b0 (diff) | |
put .frozen before /lib in sys.path; update frozen libraries
Diffstat (limited to 'ports/esp8266/main.c')
| -rw-r--r-- | ports/esp8266/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ports/esp8266/main.c b/ports/esp8266/main.c index c590ab59e..dda17bb37 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); |
