[New-bugs-announce] [issue39379] sys.path[0] is already absolute path

Ken Sato report at bugs.python.org
Sat Jan 18 02:46:57 EST 2020


New submission from Ken Sato <ksato9700 at gmail.com>:

In the "What’s New In Python 3.9" (Doc/whatsnew/3.9.rst), it says

> Python now gets the absolute path of the script filename specified on the command line (ex: python3 script.py): the __file__ attribute of the __main__ module and sys.path[0] become an absolute path, rather than a relative path.

However, I believe sys.path[0] is already absolute path since the previous versions. We can probably remove "and sys.path[0]" from the phrase to avoid possible confusions.

----------
assignee: docs at python
components: Documentation
messages: 360239
nosy: docs at python, ksato9700
priority: normal
severity: normal
status: open
title: sys.path[0] is already absolute path
versions: Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39379>
_______________________________________


More information about the New-bugs-announce mailing list