Commit 338132e5 authored by Daniel Hoffend's avatar Daniel Hoffend
Browse files

apped apps folder to search module search path

parent cda91555
......@@ -45,6 +45,16 @@ int main(void)
mp_init();
/* request by badge.team */
mp_obj_list_init(mp_sys_path, 0);
mp_obj_list_append(mp_sys_path, MP_ROM_QSTR(MP_QSTR_));
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_apps)
);
if (cnt > 0) {
pyexec_file_if_exists(script_name);
}
......
......@@ -119,6 +119,10 @@ Q(OUTPUT)
Q(PULL_UP)
Q(PULL_DOWN)
/* path */
Q(/apps)
Q(/lib)
/* personal_state */
Q(personal_state)
Q(get)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment