[issue20884] importlib/__init__.py can not be loaded without __file__ - breaks cxFreeze
R. David Murray
report at bugs.python.org
Wed Mar 12 15:29:14 CET 2014
R. David Murray added the comment:
Depending on what cx_Freeze is doing with packages, I wnder if this What's New 3.4 porting note is relevant:
* Frozen packages no longer set ``__path__`` to a list containing the package
name, they now set it to an empty list. The previous behavior could cause
the import system to do the wrong thing on submodule imports if there was
also a directory with the same name as the frozen package. The correct way
to determine if a module is a package or not is to use``hasattr(module,
'__path__')`` (:issue:`18065`).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20884>
_______________________________________
More information about the Python-bugs-list
mailing list