From 3f7aa330fd9e69ef576e911d926ebdadd568c5ea Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 14 Mar 2017 21:53:46 +1100 Subject: [PATCH] lib/utils/pyexec: Fix bug with pyexec_file not setting flag for source. --- lib/utils/pyexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/pyexec.c b/lib/utils/pyexec.c index 80a7282b14..112cfe5925 100644 --- a/lib/utils/pyexec.c +++ b/lib/utils/pyexec.c @@ -495,7 +495,7 @@ friendly_repl_reset: #endif // MICROPY_ENABLE_COMPILER int pyexec_file(const char *filename) { - return parse_compile_execute(filename, MP_PARSE_FILE_INPUT, 0); + return parse_compile_execute(filename, MP_PARSE_FILE_INPUT, EXEC_FLAG_SOURCE_IS_FILENAME); } #if MICROPY_MODULE_FROZEN