From 66028ab6dcd1b2ec9504c3473d817649935a4a1e Mon Sep 17 00:00:00 2001 From: Damien George Date: Fri, 3 Jan 2014 14:03:48 +0000 Subject: Basic implementation of import. import works for simple cases. Still work to do on finding the right script, and setting globals/locals correctly when running an imported function. --- py/lexerunix.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'py/lexerunix.h') diff --git a/py/lexerunix.h b/py/lexerunix.h index d86f202d5..b422a4306 100644 --- a/py/lexerunix.h +++ b/py/lexerunix.h @@ -1,2 +1,4 @@ mp_lexer_t *mp_lexer_new_from_str_len(const char *src_name, const char *str, uint len, bool free_str); mp_lexer_t *mp_lexer_new_from_file(const char *filename); + +void mp_import_set_directory(const char *dir); -- cgit v1.2.3