diff options
| author | Dan Halbert <halbert@halwitz.org> | 2017-09-01 16:12:26 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-09-01 16:12:26 -0400 |
| commit | a0d0b27faf0bc76ede0fbc595f641fdceb04ac56 (patch) | |
| tree | 292c2748ad92abff8c41481acfb3e68965ff8139 /atmel-samd | |
| parent | c01bf678fdca84ddc0d6c5f80ad60b5248f17cdc (diff) | |
Fix issue #207, esp8266 file operations problems (#222)
The frozen module `_boot.py` was not being loaded on restart
because `pyexec_frozen_module()` did not know about the new `.frozen`
pseudo-directory. Updated lower-level routine to look in the right place.
Also made ".frozen" and related values be `#define`s.
Diffstat (limited to 'atmel-samd')
| -rw-r--r-- | atmel-samd/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/atmel-samd/main.c b/atmel-samd/main.c index c94d2a117..70c343507 100644 --- a/atmel-samd/main.c +++ b/atmel-samd/main.c @@ -29,6 +29,7 @@ #include "py/nlr.h" #include "py/compile.h" +#include "py/frozenmod.h" #include "py/mphal.h" #include "py/runtime.h" #include "py/repl.h" @@ -165,8 +166,8 @@ void reset_mp(void) { 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)); - // Frozen modules are in their own pseudo-dir, ".frozen". - mp_obj_list_append(mp_sys_path, MP_OBJ_NEW_QSTR(MP_QSTR__dot_frozen)); + // Frozen modules are in their own pseudo-dir, e.g., ".frozen". + mp_obj_list_append(mp_sys_path, MP_OBJ_NEW_QSTR(MP_FROZEN_FAKE_DIR_QSTR)); mp_obj_list_init(mp_sys_argv, 0); } |
