Permalink
Browse files

bundled the CherryPy wsgiserver code and fixed imports to look for ws…

…giserver first
  • Loading branch information...
brosner committed Oct 24, 2009
1 parent 83df015 commit c7d6d7c5df8478c738a2dcd9e5c287529cf4fb7b
Showing with 2,079 additions and 2 deletions.
  1. +5 −2 snow/main.py
  2. +2,074 −0 snow/wsgiserver.py
View
@@ -7,9 +7,12 @@
import yaml
try:
- from cherrypy.wsgiserver import CherryPyWSGIServer
-except ImportError:
from wsgiserver import CherryPyWSGIServer
+except ImportError:
+ try:
+ from cherrypy.wsgiserver import CherryPyWSGIServer
+ except ImportError:
+ from snow.wsgiserver import CherryPyWSGIServer
class ImproperlyConfigured(Exception):
Oops, something went wrong.

0 comments on commit c7d6d7c

Please sign in to comment.