Eryk Sun <eryk...@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 <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