summaryrefslogtreecommitdiff
path: root/cherrypy/__main__.py
diff options
context:
space:
mode:
Diffstat (limited to 'cherrypy/__main__.py')
-rwxr-xr-xcherrypy/__main__.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/cherrypy/__main__.py b/cherrypy/__main__.py
index b1c9c012..6674f7cb 100755
--- a/cherrypy/__main__.py
+++ b/cherrypy/__main__.py
@@ -1,4 +1,5 @@
-import cherrypy.daemon
+"""CherryPy'd cherryd daemon runner."""
+from cherrypy.daemon import run
-if __name__ == '__main__':
- cherrypy.daemon.run()
+
+__name__ == '__main__' and run()