Message389275
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.") |
|
Date |
User |
Action |
Args |
2021-03-22 04:14:43 | RyuSh1n | set | recipients:
+ RyuSh1n, paul.moore, tim.golden, zach.ware, steve.dower |
2021-03-22 04:14:42 | RyuSh1n | set | messageid: <1616386482.98.0.154100807253.issue43586@roundup.psfhosted.org> |
2021-03-22 04:14:42 | RyuSh1n | link | issue43586 messages |
2021-03-22 04:14:42 | RyuSh1n | create | |
|