Eric Snow <ericsnowcurren...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue45272>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to