While debugging through this again, I noticed that the only values in
the path_importer_cache that are not none are those with zip files:
C:\Tools\GAE\lib\django = None
C:\Tools\Python25\DLLs = None
d:\Enlistments\Prototypes\webgamesbyjosh = None
C:\Tools\Python25\lib\site-packages\pastescript-1.3.6-py2.5.egg = None
C:\Tools\Python25\lib\site-packages\webhelpers-0.3.2-py2.5.egg = None
C:\WINDOWS\system32\python25.zip = None
C:\Tools\Python25\lib\site-packages\routes-1.7.3-py2.5.egg = None
C:\Tools\Python25\lib\site-packages\simplejson-1.7.1-py2.5.egg =
"<zipimporter object "C:\Tools\Python25\lib\site-packages\simplejs...
C:\Tools\GAE\lib\yaml\lib = None
C:\Tools\Python25\lib\site-packages\mako-0.1.8-py2.5.egg = None
C:\Tools\Python25\lib\site-packages\pastedeploy-1.3.1-py2.5.egg = None
C:\Tools\GAE\lib\webob = None
C:\Tools\Python25\lib\site-packages\setuptools-0.6c8-py2.5.egg = None
C:\Tools\Python25\lib = None
C:\Tools\Python25\lib\site-packages\elementtree-1.2.7_20070827_preview-
py2.5-win32.egg = "<zipimporter object "C:\Tools\Python25\lib\site-
packages\elementt...
C:\Tools\Python25\lib\site-packages\webob-0.9.2-py2.5.egg = None
C:\Tools\GAE = None
C:\Tools\Python25\lib\site-packages\paste-1.4.2-py2.5.egg = None
C:\Tools\Python25\lib\site-packages\beaker-1.0.1-py2.5.egg = None
C:\Tools\Python25\lib\site-packages\pylons-0.9.6.2-py2.5.egg = None
C:\Tools\Python25\lib\site-packages\formencode-0.7.1-py2.5.egg = None
C:\Tools\Python25\lib\site-packages\nose-0.10.3-py2.5.egg = None
C:\Tools\Python25\lib\site-packages\decorator-2.3.1-py2.5.egg = None
C:\Tools\Python25\lib\site-packages\appcelerator-1.0.6-py2.5.egg =
None
so I'm not sure how this code in site.py is supposed to work seeing as
how it either needs to get the module from the PIC or via
imp.find_module, which isn't actually supported on GAE, it really
needs to come from PIC:
for item in stdpath:
if item==mydir or not item:
continue # skip if current dir. on Windows, or my own
directory
importer = pic.get(item)
if importer is not None:
loader = importer.find_module('site')
if loader is not None:
# This should actually reload the current module
loader.load_module('site')
break
else:
try:
stream, path, descr = imp.find_module('site',[item])
except ImportError:
continue
if stream is None:
continue
try:
# This should actually reload the current module
imp.load_module('site',stream,path,descr)
finally:
stream.close()
break
else:
raise ImportError("Couldn't find the real 'site' module")