We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05fec17 commit 3f7aa33Copy full SHA for 3f7aa33
lib/utils/pyexec.c
@@ -495,7 +495,7 @@ int pyexec_friendly_repl(void) {
495
#endif // MICROPY_ENABLE_COMPILER
496
497
int pyexec_file(const char *filename) {
498
- return parse_compile_execute(filename, MP_PARSE_FILE_INPUT, 0);
+ return parse_compile_execute(filename, MP_PARSE_FILE_INPUT, EXEC_FLAG_SOURCE_IS_FILENAME);
499
}
500
501
#if MICROPY_MODULE_FROZEN
0 commit comments