[New-bugs-announce] [issue43586] sys.path is weird in Windows 10.

Shin Ryu report at bugs.python.org
Mon Mar 22 00:14:42 EDT 2021


New submission from Shin Ryu <kurishin at gmail.com>:

import sys
print(sys.path)

only on windows, they print sys.path[0] is python38.zip not "".

(docs.python.org says "As initialized upon program startup, the first item of this list, path[0], is the directory containing the script that was used to invoke the Python interpreter. If the script directory is not available (e.g. if the interpreter is invoked interactively or if the script is read from standard input), path[0] is the empty string, which directs Python to search modules in the current directory first. Notice that the script directory is inserted before the entries inserted as a result of PYTHONPATH.")

----------
components: Windows
messages: 389275
nosy: RyuSh1n, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: sys.path is weird in Windows 10.
type: behavior
versions: Python 3.8

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


More information about the New-bugs-announce mailing list