lib/utils/pyexec: Fix bug with pyexec_file not setting flag for source.
This commit is contained in:
parent
05fec17d9b
commit
3f7aa330fd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user