Marc-Andre Lemburg <m...@egenix.com> added the comment:
On 31.08.2021 20:14, Brett Cannon wrote: > > Brett Cannon <br...@python.org> added the comment: > >> set __file__ (and __path__) on frozen modules? > > See https://bugs.python.org/issue21736 The patch on that ticket is straight from PyRun, where the __file__ location is set in a way which signals that the file does not exist, but instead is baked into the executable: >>> import os >>> os.__file__ '<pyrun>/os.py' Not doing this breaks too many tests in the test suite for no good reason, which is why I mentioned "practicality beats purity" in the ticket. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue45020> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com