New submission from Shin Ryu <kuris...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue43586> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com