Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralaaosh <alaaosh@54714841-351b-0410-a198-e36a94b762f5>2009-11-30 20:51:48 (GMT)
committer Sayamindu Dasgupta <sayamindu@gmail.com>2010-01-09 09:12:23 (GMT)
commitc012733f8a208f6681b177c2f6f77339dd77e31f (patch)
tree361b329a997047ed4ab34a6caedf259476be8f08
parentd0fa999292aa043566963155eef1625f7d44984e (diff)
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
-rw-r--r--translate-toolkit-1.5.1/translate/search/indexing/XapianIndexer.py2
1 files changed, 1 insertions, 1 deletions
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('.')]