Forgot to rearrange the script.
authorSteve Losh <steve@stevelosh.com>
Sat, 7 Feb 2009 17:35:37 +0000 (12:35 -0500)
committerSteve Losh <steve@stevelosh.com>
Sat, 7 Feb 2009 17:35:37 +0000 (12:35 -0500)
cfbe.py

diff --git a/cfbe.py b/cfbe.py
index d22d6b9d77f5b086d1f33a7a27a6752f72008a43..7ace04c3fc3fe79297e0c62518d97a4d2a6084c3 100755 (executable)
--- a/cfbe.py
+++ b/cfbe.py
@@ -18,8 +18,6 @@ template_root = path.join(module_dir, 'templates')
 env = Environment(loader=FileSystemLoader(template_root))
 env.filters['datetimeformat'] = datetimeformat
 
-WebInterface = web.WebInterface(path.abspath(options['bug_root']))
-
 def build_parser():
     """Builds and returns the command line option parser."""
     
@@ -41,4 +39,6 @@ def parse_arguments():
 
 config = path.join(module_dir, 'cfbe.config')
 options = parse_arguments()
+
+WebInterface = web.WebInterface(path.abspath(options['bug_root']))
 cherrypy.quickstart(WebInterface, '/', config)