summaryrefslogtreecommitdiff
path: root/cherrypy/tutorial
diff options
context:
space:
mode:
authorRobert Brewer <fumanchu@aminus.org>2007-02-16 20:45:21 +0000
committerRobert Brewer <fumanchu@aminus.org>2007-02-16 20:45:21 +0000
commit2196e130da51777a1852af3a0b302e1b621e4ffd (patch)
tree54580a8312f83e878e282a748418356892fb6903 /cherrypy/tutorial
parente9a134b0d67ef908c6841fd945ac5f0a689feecd (diff)
downloadcherrypy-git-2196e130da51777a1852af3a0b302e1b621e4ffd.tar.gz
Fix for #660 (Add a 'wsgi.errors' logging handler).
Diffstat (limited to 'cherrypy/tutorial')
-rw-r--r--cherrypy/tutorial/tut01_helloworld.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/cherrypy/tutorial/tut01_helloworld.py b/cherrypy/tutorial/tut01_helloworld.py
index e79688f4..ef947601 100644
--- a/cherrypy/tutorial/tut01_helloworld.py
+++ b/cherrypy/tutorial/tut01_helloworld.py
@@ -22,14 +22,14 @@ class HelloWorld:
index.exposed = True
+import os.path
+tutconf = os.path.join(os.path.dirname(__file__), 'tutorial.conf')
+
if __name__ == '__main__':
- import os.path
- tutconf = os.path.join(os.path.dirname(__file__), 'tutorial.conf')
- cherrypy.config.update(tutconf)
# CherryPy always starts with app.root when trying to map request URIs
# to objects, so we need to mount a request handler root. A request
# to '/' will be mapped to HelloWorld().index().
- cherrypy.quickstart(HelloWorld())
+ cherrypy.quickstart(HelloWorld(), config=tutconf)
else:
# This branch is for the test suite; you can ignore it.
- cherrypy.tree.mount(HelloWorld())
+ cherrypy.tree.mount(HelloWorld(), config=tutconf)