File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -328,7 +328,8 @@ typedef long mp_off_t;
328328#define MICROPY_PY_SYS_PLATFORM "rt-thread"
329329#define MICROPY_HW_BOARD_NAME "Universal python platform"
330330#define MICROPY_HW_MCU_NAME "RT-Thread"
331- #define MICROPY_PY_PATH "/libs/mpy/"
331+ #define MICROPY_PY_PATH_FIRST "/libs/mpy/"
332+ #define MICROPY_PY_PATH_SECOND "/scripts/"
332333
333334#define MICROPY_BEGIN_ATOMIC_SECTION () rt_hw_interrupt_disable()
334335#define MICROPY_END_ATOMIC_SECTION (state ) rt_hw_interrupt_enable(state)
Original file line number Diff line number Diff line change @@ -100,7 +100,8 @@ void mpy_main(const char *filename) {
100100 /* system path initialization */
101101 mp_obj_list_init (mp_sys_path , 0 );
102102 mp_obj_list_append (mp_sys_path , MP_OBJ_NEW_QSTR (MP_QSTR_ )); // current dir (or base dir of the script)
103- mp_obj_list_append (mp_sys_path , mp_obj_new_str (MICROPY_PY_PATH , strlen (MICROPY_PY_PATH )));
103+ mp_obj_list_append (mp_sys_path , mp_obj_new_str (MICROPY_PY_PATH_FIRST , strlen (MICROPY_PY_PATH_FIRST )));
104+ mp_obj_list_append (mp_sys_path , mp_obj_new_str (MICROPY_PY_PATH_SECOND , strlen (MICROPY_PY_PATH_SECOND )));
104105 mp_obj_list_init (mp_sys_argv , 0 );
105106 readline_init0 ();
106107
You can’t perform that action at this time.
0 commit comments