diff options
author | Damien George <damien.p.george@gmail.com> | 2014-04-13 13:05:16 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-04-13 13:05:16 +0100 |
commit | 49f20b841d8280900ec52a051f641feba8bd5db9 (patch) | |
tree | 730c7889fea3a84b97077ff14387122c0c984e94 /py/builtinimport.c | |
parent | 640e7e4779d5d6b5e53fa305e5fe824da7783090 (diff) |
py: Add more #if's for configurable MOD_SYS.
Diffstat (limited to 'py/builtinimport.c')
-rw-r--r-- | py/builtinimport.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/py/builtinimport.c b/py/builtinimport.c index 4af7dd7ed..3f63768ad 100644 --- a/py/builtinimport.c +++ b/py/builtinimport.c @@ -46,7 +46,9 @@ mp_import_stat_t find_file(const char *file_str, uint file_len, vstr_t *dest) { // extract the list of paths uint path_num = 0; mp_obj_t *path_items; +#if MICROPY_ENABLE_MOD_SYS mp_obj_list_get(mp_sys_path, &path_num, &path_items); +#endif if (path_num == 0) { // mp_sys_path is empty, so just use the given file name |