diff options
Diffstat (limited to 'stm')
| -rw-r--r-- | stm/main.c | 5 | ||||
| -rw-r--r-- | stm/qstrdefsport.h | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/stm/main.c b/stm/main.c index 52ac11d81..b283821bb 100644 --- a/stm/main.c +++ b/stm/main.c @@ -367,6 +367,11 @@ soft_reset: // Micro Python init qstr_init(); rt_init(); + mp_obj_t def_path[3]; + def_path[0] = MP_OBJ_NEW_QSTR(MP_QSTR_0_colon__slash_); + def_path[1] = MP_OBJ_NEW_QSTR(MP_QSTR_0_colon__slash_src); + def_path[2] = MP_OBJ_NEW_QSTR(MP_QSTR_0_colon__slash_lib); + sys_path = mp_obj_new_list(3, def_path); #if MICROPY_HW_HAS_LCD // LCD init (just creates class, init hardware by calling LCD()) diff --git a/stm/qstrdefsport.h b/stm/qstrdefsport.h index 46920a7d7..65c4f81a9 100644 --- a/stm/qstrdefsport.h +++ b/stm/qstrdefsport.h @@ -32,3 +32,7 @@ Q(Usart) Q(ADC) Q(open) Q(File) +// Entries for sys.path +Q(0:/) +Q(0:/src) +Q(0:/lib) |
