summaryrefslogtreecommitdiffstatshomepage
path: root/stm/lexerfatfs.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-02-05 23:57:48 +0000
committerDamien George <damien.p.george@gmail.com>2014-02-05 23:57:48 +0000
commite09ffa1400cf4a9283041833fc56b848a87a4c6c (patch)
treeeff1aa442b8705039aea33cc75075c9171f11593 /stm/lexerfatfs.c
parentcdcb4906d41f42789f6610047e8ae6aa79a61e47 (diff)
downloadmicropython-e09ffa1400cf4a9283041833fc56b848a87a4c6c.tar.gz
micropython-e09ffa1400cf4a9283041833fc56b848a87a4c6c.zip
Search paths properly on import and execute __init__.py if it exists.
Diffstat (limited to 'stm/lexerfatfs.c')
-rw-r--r--stm/lexerfatfs.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/stm/lexerfatfs.c b/stm/lexerfatfs.c
index d1686cb222..d9eb8a12e0 100644
--- a/stm/lexerfatfs.c
+++ b/stm/lexerfatfs.c
@@ -51,3 +51,8 @@ mp_lexer_t *mp_lexer_new_from_file(const char *filename) {
fb->pos = 0;
return mp_lexer_new(qstr_from_str(filename), fb, (mp_lexer_stream_next_char_t)file_buf_next_char, (mp_lexer_stream_close_t)file_buf_close);
}
+
+mp_import_stat_t mp_import_stat(const char *path) {
+ // TODO implement me!
+ return MP_IMPORT_STAT_NO_EXIST;
+}