py/mpconfig: Rename MICROPY_PY___FILE__ to MICROPY_MODULE___FILE__.

For consistency with other module-related configuration options.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George
2025-08-11 17:00:44 +10:00
parent 3650196682
commit 169d382248
10 changed files with 16 additions and 16 deletions

View File

@@ -139,7 +139,7 @@ static int execute_from_lexer(int source_kind, const void *source, mp_parse_inpu
qstr source_name = lex->source_name;
#if MICROPY_PY___FILE__
#if MICROPY_MODULE___FILE__
if (input_kind == MP_PARSE_FILE_INPUT) {
mp_store_global(MP_QSTR___file__, MP_OBJ_NEW_QSTR(source_name));
}