summaryrefslogtreecommitdiffstatshomepage
path: root/stm/main.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-02-17 22:21:25 +0000
committerDamien George <damien.p.george@gmail.com>2014-02-17 22:21:25 +0000
commit517e1706bd8fcf710e15e09de5fcf00f5039643a (patch)
tree5c5db59e3b634b3db1f10b67ada9c4e86e6cd5b5 /stm/main.c
parentff77dc567cb11d68f531a06f79e795f7e93a9669 (diff)
parent4aee119f940b15da16c5e3609bb904f5e881a3df (diff)
downloadmicropython-517e1706bd8fcf710e15e09de5fcf00f5039643a.tar.gz
micropython-517e1706bd8fcf710e15e09de5fcf00f5039643a.zip
Merge pull request #309 from pfalcon/stm-sys-path
stm: Initialize sys.path with ["0:/", "0:/src", "0:/lib"].
Diffstat (limited to 'stm/main.c')
-rw-r--r--stm/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/stm/main.c b/stm/main.c
index 52ac11d81b..b283821bba 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())