possible bug in cherrypy.lib.autoreload

infidel saint.infidel at gmail.com
Thu Oct 20 11:37:37 EDT 2005


Ok, so it turns out that the problem the cherrypy.lib.autoreload module
is having, is that kid imports elementtree and on my machine the
elementtree modules are inside a zip file (.egg).  So the "path" to the
elementtree __init__.py file is not a valid OS path because everything
after the .egg file is inside the file.

Is there a quick way of determining that a module was imported from a
zip file, or that a module's __file__ attribute is a valid path as far
as Python is concerned, even though it doesn't exist to the OS?




More information about the Python-list mailing list