From 0c326359b8f5e1b8302620b51ceaf362c09bb286 Mon Sep 17 00:00:00 2001 From: Steve Losh Date: Sat, 7 Feb 2009 12:51:40 -0500 Subject: [PATCH] Got rid of the stupid config file. --- cfbe.config | 10 ---------- cfbe.py | 6 +++++- 2 files changed, 5 insertions(+), 11 deletions(-) delete mode 100644 cfbe.config diff --git a/cfbe.config b/cfbe.config deleted file mode 100644 index db56ff2..0000000 --- a/cfbe.config +++ /dev/null @@ -1,10 +0,0 @@ -[global] -server.socket_host = '0.0.0.0' -server.socket_port = 8000 -server.thread_pool = 10 -tools.sessions.on = True -tools.staticdir.root = "/Users/sjl/Documents/cherryflavoredbugseverywhere/static" - -[/static] -tools.staticdir.on = True -tools.staticdir.dir = "" \ No newline at end of file diff --git a/cfbe.py b/cfbe.py index 817f41f..63fbc7e 100755 --- a/cfbe.py +++ b/cfbe.py @@ -31,4 +31,8 @@ config = path.join(module_dir, 'cfbe.config') options = parse_arguments() WebInterface = web.WebInterface(path.abspath(options['bug_root']), template_dir) -cherrypy.quickstart(WebInterface, '/', config) + +cherrypy.config.update({'tools.staticdir.root': path.join(module_dir, 'static')}) +app_config = { '/static': { 'tools.staticdir.on': True, + 'tools.staticdir.dir': '', } } +cherrypy.quickstart(WebInterface, '/', app_config) -- 2.26.2