Bläddra i källkod

Use flup or flipflop in fcgi script

Guillaume Ayoub 12 år sedan
förälder
incheckning
152e5494d3
1 ändrade filer med 4 tillägg och 1 borttagningar
  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