Brett Cannon added the comment:

Here is a patch to change PyImport_ImportFrozenModuleObject() to not set 
__file__. Had to refactor some things as PyImport_ExecCodeModuleObject() was 
setting __file__ no matter what, so to avoid it even being used during import I 
had to change some things.

----------
keywords: +patch
stage: test needed -> patch review
Added file: http://bugs.python.org/file34555/no_frozen__file__.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20942>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to