Commits

Anonymous committed 62df00e

0.11.5dev: Fix for workaround for workaround regarding zipped Genshi egg and mod_python. Follow-up to [8335], see #7823.

  • Participants
  • Parent commits c794f0e
  • Branches 0.11-stable

Comments (0)

Files changed (1)

File trac/web/__init__.py

 # PYTHON_EGG_CACHE variable is set from there
 #
 # TODO: Remove this once the Genshi zip_safe issue has been resolved.
-from pkg_resources import get_provider, ZipProvider
-if isinstance(get_provider('genshi'), ZipProvider):
+import os
+from pkg_resources import get_distribution
+if not os.path.isdir(get_distribution('genshi').location):
     try:
         import mod_python.apache
         import sys