summaryrefslogtreecommitdiff
path: root/tests/cmdline/cmd_file_variable.py.exp
AgeCommit message (Collapse)Author
2 daysshared/runtime/pyexec: Set __file__ for file input when enabled.Andrew Leech
When `MICROPY_MODULE___FILE__` is enabled and parsing file input, set the global `__file__` variable to the source filename. This matches the behavior of the unix port and provides the current filename to the executing script. Signed-off-by: Andrew Leech <andrew.leech@planetinnovation.com.au>