summaryrefslogtreecommitdiffstats
path: root/Python/pystate.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-03-05 16:49:15 (GMT)
committerGitHub <noreply@github.com>2018-03-05 16:49:15 (GMT)
commitfd340bf9e308130736c76257ff9a697edbeb082d (patch)
tree13548d04e4b411f46d480e5c68c4295a9549b36a /Python/pystate.c
parentf92478d57a6b4014dcc0882d43b534fae1e7b929 (diff)
downloadcpython-fd340bf9e308130736c76257ff9a697edbeb082d.zip
cpython-fd340bf9e308130736c76257ff9a697edbeb082d.tar.gz
cpython-fd340bf9e308130736c76257ff9a697edbeb082d.tar.bz2
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. (cherry picked from commit 22c82be5df70c3d51e3f89b54fe1d4fb84728c1e) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Diffstat (limited to 'Python/pystate.c')
0 files changed, 0 insertions, 0 deletions