~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to start-loggerhead.py

  • Committer: Michael Hudson
  • Date: 2008-06-20 02:24:58 UTC
  • mto: This revision was merged to the branch mainline in revision 164.
  • Revision ID: michael.hudson@canonical.com-20080620022458-qgpah31u1yqz9sfp
reorder imports in start-loggerhead.py

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
import sys
7
7
from optparse import OptionParser
8
8
 
9
 
from loggerhead.apps.config import Root
 
9
from configobj import ConfigObj
 
10
 
10
11
from paste import httpserver
11
12
from paste.httpexceptions import make_middleware
12
13
from paste.translogger import make_filter
13
14
 
14
15
from loggerhead import daemon, release
 
16
from loggerhead.apps.config import Root
15
17
 
16
18
 
17
19
def make_handler(config, filename):
77
79
 
78
80
    # read loggerhead config
79
81
 
80
 
    from configobj import ConfigObj
81
82
    config = ConfigObj(os.path.join(home, 'loggerhead.conf'), encoding='utf-8')
82
83
    extra_path = config.get('bzrpath', None)
83
84
    if extra_path: