[issue45272] 'os.path' should not be a frozen module
Eric Snow
report at bugs.python.org
Thu Sep 23 13:52:38 EDT 2021
Eric Snow <ericsnowcurrently at gmail.com> added the comment:
The matter here boils down to the design of _imp.is_frozen() [1]. It only checks to see if the given module name shows up in the list of frozen modules in Python/frozen.c. This broke things when I froze os and posixpath/ntpath.
The simplest solution was to include os.path in the list of modules in frozen.c. The better solution would be to have _imp.is_frozen() check the module in sys.modules.
[1] see find_frozen() in Python/import.c
----------
nosy: +barry, brett.cannon, jaraco, ncoghlan
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45272>
_______________________________________
More information about the Python-bugs-list
mailing list