Explorar el Código

Use flup or flipflop in fcgi script

Guillaume Ayoub hace 12 años
padre
commit
152e5494d3
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      radicale.fcgi

+ 4 - 1
radicale.fcgi

@@ -24,7 +24,10 @@ Launch a Radicale FastCGI server according to configuration.
 
 """
 
-from flup.server.fcgi import WSGIServer
+try:
+    from flup.server.fcgi import WSGIServer
+except ImportError:
+    from flipflop import WSGIServer
 import radicale