Skip to content

Commit 3f7aa33

Browse files
committed
lib/utils/pyexec: Fix bug with pyexec_file not setting flag for source.
1 parent 05fec17 commit 3f7aa33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils/pyexec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ int pyexec_friendly_repl(void) {
495495
#endif // MICROPY_ENABLE_COMPILER
496496

497497
int pyexec_file(const char *filename) {
498-
return parse_compile_execute(filename, MP_PARSE_FILE_INPUT, 0);
498+
return parse_compile_execute(filename, MP_PARSE_FILE_INPUT, EXEC_FLAG_SOURCE_IS_FILENAME);
499499
}
500500

501501
#if MICROPY_MODULE_FROZEN

0 commit comments

Comments
 (0)