diff options
author | Damien George <damien.p.george@gmail.com> | 2017-03-14 21:53:46 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-03-14 21:53:46 +1100 |
commit | 3f7aa330fd9e69ef576e911d926ebdadd568c5ea (patch) | |
tree | 0b94d195d6820f5ceb77b59cfc2531fbc8039dfd /lib/utils/pyexec.c | |
parent | 05fec17d9b126ee680095110fd520162669a6ce7 (diff) | |
download | micropython-3f7aa330fd9e69ef576e911d926ebdadd568c5ea.tar.gz micropython-3f7aa330fd9e69ef576e911d926ebdadd568c5ea.zip |
lib/utils/pyexec: Fix bug with pyexec_file not setting flag for source.
Diffstat (limited to 'lib/utils/pyexec.c')
-rw-r--r-- | lib/utils/pyexec.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |