diff options
author | Damien George <damien.p.george@gmail.com> | 2014-02-05 23:57:48 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-02-05 23:57:48 +0000 |
commit | e09ffa1400cf4a9283041833fc56b848a87a4c6c (patch) | |
tree | eff1aa442b8705039aea33cc75075c9171f11593 /stm/lexerfatfs.c | |
parent | cdcb4906d41f42789f6610047e8ae6aa79a61e47 (diff) | |
download | micropython-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.c | 5 |
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; +} |