This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eryksun
Recipients RyuSh1n, eryksun, paul.moore, steve.dower, tim.golden, zach.ware
Date 2021-03-22.06:01:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1616392909.1.0.215916855044.issue43586@roundup.psfhosted.org>
In-reply-to
Content
> 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
History
Date User Action Args
2021-03-22 06:01:49eryksunsetrecipients: + eryksun, paul.moore, tim.golden, zach.ware, steve.dower, RyuSh1n
2021-03-22 06:01:49eryksunsetmessageid: <1616392909.1.0.215916855044.issue43586@roundup.psfhosted.org>
2021-03-22 06:01:49eryksunlinkissue43586 messages
2021-03-22 06:01:49eryksuncreate