From c012733f8a208f6681b177c2f6f77339dd77e31f Mon Sep 17 00:00:00 2001 From: alaaosh Date: Mon, 30 Nov 2009 20:51:48 +0000 Subject: yet another way to catch running under apache git-svn-id: https://translate.svn.sourceforge.net/svnroot/translate/src/trunk/translate@13411 54714841-351b-0410-a198-e36a94b762f5 --- diff --git a/translate-toolkit-1.5.1/translate/search/indexing/XapianIndexer.py b/translate-toolkit-1.5.1/translate/search/indexing/XapianIndexer.py index 2c7fac0..c7a51c0 100644 --- a/translate-toolkit-1.5.1/translate/search/indexing/XapianIndexer.py +++ b/translate-toolkit-1.5.1/translate/search/indexing/XapianIndexer.py @@ -38,7 +38,7 @@ import sys import re # detect if running under apache -if 'apache' in sys.modules or '_apache' in sys.modules: +if 'apache' in sys.modules or '_apache' in sys.modules or 'mod_wsgi' in sys.modules: def _str2version(version): return [int(i) for i in version.split('.')] -- cgit v0.9.1