[Python-checkins] r66389 - sandbox/branches/setuptools-0.6/setuptools/command/bdist_egg.py

phillip.eby python-checkins at python.org
Thu Sep 11 17:44:25 CEST 2008


Author: phillip.eby
Date: Thu Sep 11 17:44:25 2008
New Revision: 66389

Log:

Fix for http://bugs.python.org/setuptools/issue37 - missing
__loader__ running under Google App Engine. (backport from trunk)


Modified:
   sandbox/branches/setuptools-0.6/setuptools/command/bdist_egg.py

Modified: sandbox/branches/setuptools-0.6/setuptools/command/bdist_egg.py
==============================================================================
--- sandbox/branches/setuptools-0.6/setuptools/command/bdist_egg.py	(original)
+++ sandbox/branches/setuptools-0.6/setuptools/command/bdist_egg.py	Thu Sep 11 17:44:25 2008
@@ -29,7 +29,7 @@
         "   import sys, pkg_resources, imp",
         "   __file__ = pkg_resources.resource_filename(__name__,%r)"
             % resource,
-        "   del __bootstrap__, __loader__",
+        "   __loader__ = None; del __bootstrap__, __loader__",
         "   imp.load_dynamic(__name__,__file__)",
         "__bootstrap__()",
         "" # terminal \n


More information about the Python-checkins mailing list