[issue20884] importlib/__init__.py can not be loaded without __file__ - breaks cxFreeze
Jurko Gospodnetić
report at bugs.python.org
Wed Mar 12 14:37:01 CET 2014
Jurko Gospodnetić added the comment:
Ask per Nick's instructions I tweaked cx_Freeze to import a dummy
package as frozen. The dummy package has the following structure:
gugu/
__init__.py
and its __init__.py file contains only the 8 bytes '__file__'
(does not include the quotes).
Then running a frozen executable based on a script with the following content:
import gugu
results in a NameError due to the name '__file__' not being
recognized.
You can see more detailed information at:
https://bitbucket.org/anthony_tuininga/cx_freeze/issue/61/python-340-nameerror-name-__file__-is-not#comment-9084842
Hope this helps.
Best regards,
Jurko Gospodnetić
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20884>
_______________________________________
More information about the Python-bugs-list
mailing list