aboutsummaryrefslogtreecommitdiffstats
path: root/cfbe.py
diff options
context:
space:
mode:
authorSteve Losh <steve@stevelosh.com>2009-02-07 12:33:28 -0500
committerSteve Losh <steve@stevelosh.com>2009-02-07 12:33:28 -0500
commitab14edcd57eeac529d3085f053fa6d3124a0432a (patch)
treeac37a4aaa272438f1eb647684189aa596de798b3 /cfbe.py
parentc8f65ce798528648121de03c744c730d89b41435 (diff)
downloadbugseverywhere-ab14edcd57eeac529d3085f053fa6d3124a0432a.tar.gz
I really need to learn more about Python packages.
Diffstat (limited to 'cfbe.py')
-rwxr-xr-xcfbe.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cfbe.py b/cfbe.py
index 56badfd..82a62cf 100755
--- a/cfbe.py
+++ b/cfbe.py
@@ -1,14 +1,14 @@
#!/usr/bin/env python
import cherrypy
-import cherryflavoredbugseverywhere
+from cherryflavoredbugseverywhere import web
from libbe import bugdir
from jinja2 import Environment, FileSystemLoader
from datetime import datetime
from optparse import OptionParser
from os import path
-module_dir = path.dirname(path.abspath(cherryflavoredbugseverywhere.__file__))
+module_dir = path.dirname(path.abspath(web.__file__))
def datetimeformat(value, format='%B %d, %Y at %I:%M %p'):
"""Takes a timestamp and revormats it into a human-readable string."""
@@ -19,7 +19,7 @@ template_root = path.join(module_dir, 'templates')
env = Environment(loader=FileSystemLoader(template_root))
env.filters['datetimeformat'] = datetimeformat
-WebInterface = cherryflavoredbugseverywhere.web.WebInterface(path.abspath(options['bug_root']))
+WebInterface = web.WebInterface(path.abspath(options['bug_root']))
def build_parser():
"""Builds and returns the command line option parser."""