summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-08-25 18:44:34 +0000
committerGuido van Rossum <guido@python.org>1998-08-25 18:44:34 +0000
commitafd3daedded4f77f9803a3a486ca00f9fe363859 (patch)
tree4997a5c81f61dc84698609deacb11812dcc7a3d8 /Python/pythonrun.c
parent90f827c67e27b98804d74e8e579a9bd98bc01702 (diff)
downloadcpython-git-afd3daedded4f77f9803a3a486ca00f9fe363859.tar.gz
__file__ used to be always set to the .pyc (or .pyo) file, even if
that file in fact did not exist or at least was not used. Change this so that __file__ is *only* set to the .pyc/.pyo file when it actually read the code object from it; otherwise __file__ is set to the .py file.
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions