Skip to content

Commit 882906e

Browse files
authored
Merge pull request #281 from python/master
bpo-39379: Remove reference to sys.path[0] being absolute path in wha…
2 parents 9241ec8 + 1f0cd3c commit 882906e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Doc/whatsnew/3.9.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,10 @@ Other Language Changes
8989

9090
* Python now gets the absolute path of the script filename specified on
9191
the command line (ex: ``python3 script.py``): the ``__file__`` attribute of
92-
the :mod:`__main__` module and ``sys.path[0]`` become an
93-
absolute path, rather than a relative path. These paths now remain valid
94-
after the current directory is changed by :func:`os.chdir`. As a side effect,
95-
a traceback also displays the absolute path for :mod:`__main__` module frames
96-
in this case.
92+
the :mod:`__main__` module became an absolute path, rather than a relative
93+
path. These paths now remain valid after the current directory is changed
94+
by :func:`os.chdir`. As a side effect, the traceback also displays the
95+
absolute path for :mod:`__main__` module frames in this case.
9796
(Contributed by Victor Stinner in :issue:`20443`.)
9897

9998
* In the :ref:`Python Development Mode <devmode>` and in debug build, the

0 commit comments

Comments
 (0)