File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -89,11 +89,10 @@ Other Language Changes
89
89
90
90
* Python now gets the absolute path of the script filename specified on
91
91
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.
97
96
(Contributed by Victor Stinner in :issue: `20443 `.)
98
97
99
98
* In the :ref: `Python Development Mode <devmode >` and in debug build, the
You can’t perform that action at this time.
0 commit comments