Correcting the initialization of the mimetypes library
@@ -16,6 +16,7 @@ from cherrypy._cpcompat import ntob
from cherrypy.lib import cptools, httputil, file_generator_limited
+if not mimetypes.inited:
mimetypes.init()
mimetypes.types_map['.dwg'] = 'image/x-dwg'
mimetypes.types_map['.ico'] = 'image/x-icon'
