Skip to content
Browse files

If cherrypy is not on PYTHONPATH then test just wsgiserver as that is…

… one recommended path from the CherryPy project.
  • Loading branch information...
1 parent 2b7447b commit 65ebeaf9858297bb27d32602f649b5c8439abebe @brosner committed
Showing with 5 additions and 1 deletion.
  1. +5 −1 bosnowsgi.py
View
6 bosnowsgi.py
@@ -5,7 +5,11 @@
import yaml
from optparse import OptionParser
-from cherrypy.wsgiserver import CherryPyWSGIServer
+
+try:
+ from cherrypy.wsgiserver import CherryPyWSGIServer
+except ImportError:
+ from wsgiserver import CherryPyWSGIServer
class ImproperlyConfigured(Exception):
pass

0 comments on commit 65ebeaf

Please sign in to comment.
Something went wrong with that request. Please try again.