summaryrefslogtreecommitdiff
path: root/Python/pystate.c
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2018-03-05 11:02:46 -0500
committerGitHub <noreply@github.com>2018-03-05 11:02:46 -0500
commit22c82be5df70c3d51e3f89b54fe1d4fb84728c1e (patch)
tree9ba02699250449f1ab243049a5785b46ecb3b0af /Python/pystate.c
parent18fd89246333bfa1b76c1623df689214f3ce2bf3 (diff)
downloadcpython-git-22c82be5df70c3d51e3f89b54fe1d4fb84728c1e.tar.gz
bpo-32984: IDLE - set __file__ for startup files (GH-5981)
Like Python, IDLE optionally runs one startup file in the Shell window before presenting the first interactive input prompt. For IDLE, option -s runs a file named in environmental variable IDLESTARTUP or PYTHONSTARTUP; -r file runs file. Python sets __file__ to the startup file name before running the file and unsets it before the first prompt. IDLE now does the same when run normally, without the -n option.
Diffstat (limited to 'Python/pystate.c')
0 files changed, 0 insertions, 0 deletions