[issue43586] sys.path is weird in Windows 10.
Eryk Sun
report at bugs.python.org
Mon Mar 22 02:01:49 EDT 2021
Eryk Sun <eryksun at gmail.com> added the comment:
> on windows, they print sys.path[0] is python38.zip not "".
Isolated mode is probably enabled, i.e. `sys.flags.isolated == 1`. It's enabled by default for the embedded distribution [1], or if a "._pth" file exists beside and with the same base name as the executable or DLL (e.g. "python._pth" or "python38._pth") [2].
---
[1] https://docs.python.org/3/using/windows.html#the-embeddable-package
[2] https://docs.python.org/3/using/windows.html#finding-modules
----------
nosy: +eryksun
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43586>
_______________________________________
More information about the Python-bugs-list
mailing list